What redirect URL to use when logging in with GitHUB with OAuth2?












-1















I'm new in ios sdk and English. Therefore, sorry for my Eng.
I try to do authentication through github using OAuthSwift.
In the registration of the application (https://github.com/settings/apps), there is need a redirect URL. In the tutorial from raywenderlich.com was an example, they did authorization through Google. They wrote a unique domain in this line that does not work: com.raywenderlich.Incognito. And in Info.plist, we added a Scheme URL with com.raywenderlich.Incognito, so that (as I understood it) when we go to this address after authentication, we’ve got into our application. But if you try to add in the application settings (https://github.com/settings/apps) the Redirect URL: something like com.raywenderlich.Incognito, will generate an error, because github wants the URL to have to be valid. If we put the Valid URL there, then when we will be redirected to this address, we will simply go to it and will not return to the application.



I would be grateful for any help.



Sorry for my English.










share|improve this question


















  • 1





    Clarity is a bigger problem than English in this question. Try being explicit and direct.

    – John Schmitt
    Jan 19 at 1:15
















-1















I'm new in ios sdk and English. Therefore, sorry for my Eng.
I try to do authentication through github using OAuthSwift.
In the registration of the application (https://github.com/settings/apps), there is need a redirect URL. In the tutorial from raywenderlich.com was an example, they did authorization through Google. They wrote a unique domain in this line that does not work: com.raywenderlich.Incognito. And in Info.plist, we added a Scheme URL with com.raywenderlich.Incognito, so that (as I understood it) when we go to this address after authentication, we’ve got into our application. But if you try to add in the application settings (https://github.com/settings/apps) the Redirect URL: something like com.raywenderlich.Incognito, will generate an error, because github wants the URL to have to be valid. If we put the Valid URL there, then when we will be redirected to this address, we will simply go to it and will not return to the application.



I would be grateful for any help.



Sorry for my English.










share|improve this question


















  • 1





    Clarity is a bigger problem than English in this question. Try being explicit and direct.

    – John Schmitt
    Jan 19 at 1:15














-1












-1








-1








I'm new in ios sdk and English. Therefore, sorry for my Eng.
I try to do authentication through github using OAuthSwift.
In the registration of the application (https://github.com/settings/apps), there is need a redirect URL. In the tutorial from raywenderlich.com was an example, they did authorization through Google. They wrote a unique domain in this line that does not work: com.raywenderlich.Incognito. And in Info.plist, we added a Scheme URL with com.raywenderlich.Incognito, so that (as I understood it) when we go to this address after authentication, we’ve got into our application. But if you try to add in the application settings (https://github.com/settings/apps) the Redirect URL: something like com.raywenderlich.Incognito, will generate an error, because github wants the URL to have to be valid. If we put the Valid URL there, then when we will be redirected to this address, we will simply go to it and will not return to the application.



I would be grateful for any help.



Sorry for my English.










share|improve this question














I'm new in ios sdk and English. Therefore, sorry for my Eng.
I try to do authentication through github using OAuthSwift.
In the registration of the application (https://github.com/settings/apps), there is need a redirect URL. In the tutorial from raywenderlich.com was an example, they did authorization through Google. They wrote a unique domain in this line that does not work: com.raywenderlich.Incognito. And in Info.plist, we added a Scheme URL with com.raywenderlich.Incognito, so that (as I understood it) when we go to this address after authentication, we’ve got into our application. But if you try to add in the application settings (https://github.com/settings/apps) the Redirect URL: something like com.raywenderlich.Incognito, will generate an error, because github wants the URL to have to be valid. If we put the Valid URL there, then when we will be redirected to this address, we will simply go to it and will not return to the application.



I would be grateful for any help.



Sorry for my English.







ios swift github oauth-2.0






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 19 at 0:04









Au RoomAu Room

1




1








  • 1





    Clarity is a bigger problem than English in this question. Try being explicit and direct.

    – John Schmitt
    Jan 19 at 1:15














  • 1





    Clarity is a bigger problem than English in this question. Try being explicit and direct.

    – John Schmitt
    Jan 19 at 1:15








1




1





Clarity is a bigger problem than English in this question. Try being explicit and direct.

– John Schmitt
Jan 19 at 1:15





Clarity is a bigger problem than English in this question. Try being explicit and direct.

– John Schmitt
Jan 19 at 1:15












1 Answer
1






active

oldest

votes


















0














Redirect url in OAuth is the url that the authentication provider navigates to when authentication is successful.




  • For mobile apps it is the link that launches the app (a sort of deep linking)

  • For websites it is the website home screen






share|improve this answer
























  • Where can I get this link that will launch the application? In the settings of the application, if you specify a non-valid URL, then in the settings of the application in GitHub you will not be able to specify it. If you specify a valid URL, then it will simply go to this site, and not redirect to the application

    – Au Room
    Jan 19 at 11:49











  • @AuRoom - The redirect_uri is a page on your website that handles the callback with your OAuth token parameters. You need to create this page to process information returned to you from OAuth.

    – John Hanley
    Jan 19 at 20:23











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54262925%2fwhat-redirect-url-to-use-when-logging-in-with-github-with-oauth2%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Redirect url in OAuth is the url that the authentication provider navigates to when authentication is successful.




  • For mobile apps it is the link that launches the app (a sort of deep linking)

  • For websites it is the website home screen






share|improve this answer
























  • Where can I get this link that will launch the application? In the settings of the application, if you specify a non-valid URL, then in the settings of the application in GitHub you will not be able to specify it. If you specify a valid URL, then it will simply go to this site, and not redirect to the application

    – Au Room
    Jan 19 at 11:49











  • @AuRoom - The redirect_uri is a page on your website that handles the callback with your OAuth token parameters. You need to create this page to process information returned to you from OAuth.

    – John Hanley
    Jan 19 at 20:23
















0














Redirect url in OAuth is the url that the authentication provider navigates to when authentication is successful.




  • For mobile apps it is the link that launches the app (a sort of deep linking)

  • For websites it is the website home screen






share|improve this answer
























  • Where can I get this link that will launch the application? In the settings of the application, if you specify a non-valid URL, then in the settings of the application in GitHub you will not be able to specify it. If you specify a valid URL, then it will simply go to this site, and not redirect to the application

    – Au Room
    Jan 19 at 11:49











  • @AuRoom - The redirect_uri is a page on your website that handles the callback with your OAuth token parameters. You need to create this page to process information returned to you from OAuth.

    – John Hanley
    Jan 19 at 20:23














0












0








0







Redirect url in OAuth is the url that the authentication provider navigates to when authentication is successful.




  • For mobile apps it is the link that launches the app (a sort of deep linking)

  • For websites it is the website home screen






share|improve this answer













Redirect url in OAuth is the url that the authentication provider navigates to when authentication is successful.




  • For mobile apps it is the link that launches the app (a sort of deep linking)

  • For websites it is the website home screen







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 19 at 0:57









Daniel RaoufDaniel Raouf

714515




714515













  • Where can I get this link that will launch the application? In the settings of the application, if you specify a non-valid URL, then in the settings of the application in GitHub you will not be able to specify it. If you specify a valid URL, then it will simply go to this site, and not redirect to the application

    – Au Room
    Jan 19 at 11:49











  • @AuRoom - The redirect_uri is a page on your website that handles the callback with your OAuth token parameters. You need to create this page to process information returned to you from OAuth.

    – John Hanley
    Jan 19 at 20:23



















  • Where can I get this link that will launch the application? In the settings of the application, if you specify a non-valid URL, then in the settings of the application in GitHub you will not be able to specify it. If you specify a valid URL, then it will simply go to this site, and not redirect to the application

    – Au Room
    Jan 19 at 11:49











  • @AuRoom - The redirect_uri is a page on your website that handles the callback with your OAuth token parameters. You need to create this page to process information returned to you from OAuth.

    – John Hanley
    Jan 19 at 20:23

















Where can I get this link that will launch the application? In the settings of the application, if you specify a non-valid URL, then in the settings of the application in GitHub you will not be able to specify it. If you specify a valid URL, then it will simply go to this site, and not redirect to the application

– Au Room
Jan 19 at 11:49





Where can I get this link that will launch the application? In the settings of the application, if you specify a non-valid URL, then in the settings of the application in GitHub you will not be able to specify it. If you specify a valid URL, then it will simply go to this site, and not redirect to the application

– Au Room
Jan 19 at 11:49













@AuRoom - The redirect_uri is a page on your website that handles the callback with your OAuth token parameters. You need to create this page to process information returned to you from OAuth.

– John Hanley
Jan 19 at 20:23





@AuRoom - The redirect_uri is a page on your website that handles the callback with your OAuth token parameters. You need to create this page to process information returned to you from OAuth.

– John Hanley
Jan 19 at 20:23


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54262925%2fwhat-redirect-url-to-use-when-logging-in-with-github-with-oauth2%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Liquibase includeAll doesn't find base path

How to use setInterval in EJS file?

Petrus Granier-Deferre