8000 Set oAuth redirect URL dynamically · Issue #1591 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Set oAuth redirect URL dynamically #1591

@fadiquader

Description

@fadiquader

Steps to reproduce

I'm working on a project where I need to set the oAuth redirect URL dynamically (I need to set the domain or subdomain dynamically). I've read that this is possible in the latest version of Feathers (#990). However, I've struggled to make this work in practice. Looking at the code, it seems that it is not possible to dynamically set the redirect URL -- what I see in the code here just uses the redirect URL from the environment variables: https://github.com/feathersjs/feathers/blob/master/packages/authentication-oauth/src/strategy.ts#L75

Expected behavior

I'd like to be able to dynamically set the redirect URL, changing the domain or subdomain. This seems to be possible with Grant directly, but I can't see how to do this with Feathers.

Actual behavior

I can't see any way to do this! Would really appreciate your advice on how to do this (if it's possible)

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working):
Feathers v4 (latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0