Skip to content

Custom URI Scheme not working in iPhone App for OAuth2 #5106

@lokendrasurya

Description

@lokendrasurya

Description

Hi,
I am trying to implement OAuth2 for my iOS app.
I have defined one urlscheme "lokapp" in my mobile app, and have updated in Redirects in /oauth2/general.
So when I launch my app by adding my custom url scheme in browser "lokapp://", its working as expected and launc my app. Now when I open authUrl it open Authorize page correctly and when I click on Authrize it shows 'Redirect URI is not supported by client'. I am not sure how to fix these. Images for reference

Steps to Reproduce

Register app on discord, add redirect url in dashboard and use same in mobile app and try auth url in mobile app.

Expected Behavior

Url scheme should work and take user back to app.

Current Behavior

User is not getting redirected to app via urlscheme

Screenshots/Videos

IMG_2496
IMG_2495

Client and System Information

Mobile - iPhone Xs
OS Version - 15.5

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