Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit b1a451a

Browse files
committed
bug external providers
1 parent 61d07c3 commit b1a451a

File tree

3 files changed

+190
-3
lines changed

3 files changed

+190
-3
lines changed

src/Frontend/Jp.UI.SSO/Controllers/Account/AccountController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public async Task<IActionResult> ExternalLogin(string provider, string returnUrl
228228
public async Task<IActionResult> ExternalLoginCallback()
229229
{
230230
// read external identity from the temporary cookie
231-
var result = await HttpContext.AuthenticateAsync(IdentityConstants.ExternalScheme);
231+
var result = await HttpContext.AuthenticateAsync(IdentityServerConstants.ExternalCookieAuthenticationScheme);
232232
if (result?.Succeeded != true)
233233
{
234234
throw new Exception("External authentication error");

src/Frontend/Jp.UI.SSO/appsettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Sql Server connection
66
// "SSOConnection": "Server=.;Initial Catalog=JpProject;Persist Security Info=False;User ID=sa;Password=@Password1;MultipleActiveResultSets=False;Connection Timeout=30;"
77
// MySql connection
8-
"SSOConnection": "server=jpdatabase,port=3306;database=jpproject;user=jp;password=10203040"
8+
"SSOConnection": "server=localhost,port=3306;database=jpproject;user=bruno;password=10203040"
99
},
1010
"CertificateOptions": {
1111
"Type": "Temporary",
@@ -44,6 +44,6 @@
4444
"IS4AdminUi": "http://localhost:4300",
4545
"ResourceServerURL": "https://localhost:5003",
4646
"Authority": "https://localhost:5000",
47-
"DatabaseType": "SqlServer"
47+
"DatabaseType": "MySql"
4848
}
4949
}

0 commit comments

Comments
 (0)