title | intro | redirect_from | versions | topics | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creating an OAuth app |
{% data reusables.shortdesc.creating_oauth_apps %} |
|
|
|
Note
Consider building a {% data variables.product.prodname_github_app %} instead of an {% data variables.product.prodname_oauth_app %}.
Both {% data variables.product.prodname_oauth_apps %} and {% data variables.product.prodname_github_apps %} use OAuth 2.0.
{% data variables.product.prodname_oauth_apps %} can only act on behalf of a user while {% data variables.product.prodname_github_apps %} can either act on behalf of a user or independently of a user.
{% data variables.product.prodname_github_apps %} use fine-grained permissions, give the user more control over which repositories the app can access, and use short-lived tokens.
{% ifversion fpt or ghec %}
Note
{% data reusables.apps.maximum-oauth-apps-allowed %}
{% endif %}
{% data reusables.user-settings.access_settings %} {% data reusables.user-settings.developer_settings %} {% data reusables.user-settings.oauth_apps %}
-
Click New OAuth App.
[!NOTE] If you haven't created an app before, this button will say, Register a new application.
-
In "Application name", type the name of your app.
[!WARNING] Only use information in your {% data variables.product.prodname_oauth_app %} that you consider public. Avoid using sensitive data, such as internal URLs, when creating an {% data variables.product.prodname_oauth_app %}.
-
In "Homepage URL", type the full URL to your app's website.
-
Optionally, in "Application description", type a description of your app that users will see.
-
In "Authorization callback URL", type the callback URL of your app.
[!NOTE] {% data variables.product.prodname_oauth_apps %} cannot have multiple callback URLs, unlike {% data variables.product.prodname_github_apps %}.
-
If your {% data variables.product.prodname_oauth_app %} will use the device flow to identify and authorize users, click Enable Device Flow. For more information about the device flow, see AUTOTITLE.
-
Click Register application.