N
N
Nikolai Gudirin2019-01-19 02:32:39
iOS
Nikolai Gudirin, 2019-01-19 02:32:39

What Redirect URL should be written in GitHub when authorizing via OAuth2(swift)?

Hello everyone, I'm trying to make authentication in the application through github using OAuthSwift.
In the application registration, there is a redirect URL. There was an example on raywenderlich.com, they logged in through Google. So there, they wrote in this line a unique domain that does not work at all: com.raywenderlich.Incognito. And we added the URL Scheme with com.raywenderlich.Incognito to xCode so that (as far as I understand) when the safari goes to this address, we get into our application. But if you try to add URL Redirect: something like com.raywenderlich.Incognito to github, it gives an error, because github requires that the URL must be a valid. If you put a Valid URL there, then when safari tries to go to this address, it will simply go to it and not return to the application)
I would be grateful for any help)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Riley Usagi, 2019-01-22
@b4udi_e

Read about DeepLink .
I myself suffered for a long time, but in the end I found a solution somewhere.
https://github.com/riley-usagi/github-auth/blob/ma...
and (ibid.)
https://github.com/riley-usagi/github-auth/blob/ma
... in that the name of your application should be on the left side of the link, and any text on the right side (but preferably "name_storyboard.name_screen" .
The main thing is that the link matches the one you specify in the Github application settings .

D
Dmitry Bay, 2019-01-19
@kawabanga

You make a redirect URL to your backend site, and from it to the application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question