Forum

PureSourceCode.com Forum
Share:
Notifications
Clear all

Configure GitHub as external provider in IdentityServer (Duende)

1 Posts
2 Users
0 Likes
1,168 Views
(@erossinichi)
Active Member
Joined: 4 years ago
Posts: 6
Topic starter  

Hi guys,
I have just configured and replace my old Skoruba with the new one. Thank you for your great job! I'm fighting with the configuration of GitHub. First, in the configuration

  "ExternalProvidersConfiguration": {
    "UseGitHubProvider": false,
    "GitHubClientId": "",
    "GitHubClientSecret": "",
    "UseAzureAdProvider": false,
    "AzureAdClientId": "",
    "AzureAdTenantId": "",
    "AzureInstance": "",
    "AzureAdSecret": "",
    "AzureAdCallbackPath": "",
    "AzureDomain": ""
  }

there is a value misses GitHubCallbackPath. So, I think you can change the configuration in

  "ExternalProvidersConfiguration": {
    "UseGitHubProvider": false,
    "GitHubClientId": "",
    "GitHubClientSecret": "",
    "GitHubCallbackPath": "",
    "UseAzureAdProvider": false,
    "AzureAdClientId": "",
    "AzureAdTenantId": "",
    "AzureInstance": "",
    "AzureAdSecret": "",
    "AzureAdCallbackPath": "",
    "AzureDomain": ""
  }

My question is about the callback. I tried different path

  • /signin-github
  • /signin-oidc

but none of them is working. What is the correct path I have to use?


   
Quote
(@enrico)
Member Admin
Joined: 4 years ago
Posts: 151
 

I had the same issue! The solution is quite straightforward. The callback you have to use is

/signin-github-token

Also, if you are looking for the Azure callback, use

/signin-aad-oidc

So, your configuration will be:

  "ExternalProvidersConfiguration": {
    "UseGitHubProvider": false,
    "GitHubClientId": "",
    "GitHubClientSecret": "",
    "GitHubCallbackPath": "/signin-github-token",
    "UseAzureAdProvider": false,
    "AzureAdClientId": "",
    "AzureAdTenantId": "",
    "AzureInstance": "",
    "AzureAdSecret": "",
    "AzureAdCallbackPath": "/signin-aad-oidc",
    "AzureDomain": ""
  }

   
ReplyQuote
Share: