After publish on IIS server the webapi (running in port 8075) works fine and swagger login receiving all data in GetCurrentLoginInformations, but webapp (running in port 8076) can't login (when attempt it return to login page again) because user return null.
You can see urls, configs, json below If Log needed tell me where to upload it for review
http://name:8075 (webapi)
http://name:8076 (webapp)
appsettings.json
{ "ConnectionStrings": { "Default": "Server=dbname;Database=my-DB;User Id=usr;Password=--------------;Max Pool Size=50000;" }, "AbpZeroLicenseCode": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "Abp": { "RedisCache": { "ConnectionString": "localhost", "DatabaseId": -1 } }, "App": { "ServerRootAddress": "http://name:8075/", "ClientRootAddress": "http://name:8076/", "CorsOrigins": "http://*.mycompany.com,http://localhost:4201,http://localhost:49152,http://name:8076,http://localhost:8076", "SwaggerEndPoint": "/swagger/v1/swagger.json", "AllowAnonymousSignalRConnection": "true" }, "Authentication": { "Facebook": { "IsEnabled": "false", "AppId": "", "AppSecret": "" }, "Google": { "IsEnabled": "false", "ClientId": "", "ClientSecret": "", "UserInfoEndpoint": "https://www.googleapis.com/oauth2/v2/userinfo" }, "Microsoft": { "IsEnabled": "false", "ConsumerKey": "", "ConsumerSecret": "" }, "OpenId": { "IsEnabled": "false", "ClientId": "", "Authority": "", "LoginUrl": "", "ValidateIssuer": "true" }, "WsFederation": { "IsEnabled": "false", "Authority": "", "ClientId": "", "Tenant": "", "MetaDataAddress": "" }, "JwtBearer": { "IsEnabled": "true", "SecurityKey": "ProjectNameDemo_8CFB2EC534E14D56", "Issuer": "ProjectNameDemo", "Audience": "ProjectNameDemo" } }, "Twilio": { "AccountSid": "", "AuthToken": "", "SenderNumber": "" }, "Recaptcha": { "SiteKey": "6LfD-wUTAAAAACULAVXvL61K0w02RIsjhI8EyiS-", "SecretKey": "6LfD-wUTAAAAADm3h7vomd9FtaAlAwexki29BtXC" }, "IdentityServer": { "IsEnabled": "true", "Authority": "http://name:8075/", "ApiName": "default-api", "ApiSecret": "secret", "Clients": [ { "ClientId": "client", "AllowedGrantTypes": [ "password" ], "ClientSecrets": [ { "Value": "def2edf7-5d42-4edc-a84a-30136c340e13" } ], "AllowedScopes": [ "default-api" ] }, { "ClientId": "demo", "ClientName": "MVC Client Demo", "AllowedGrantTypes": [ "hybrid", "client_credentials" ], "RequireConsent": "true", "ClientSecrets": [ { "Value": "def2edf7-5d42-4edc-a84a-30136c340e13" } ], "RedirectUris": [ "http://openidclientdemo.com:8001/signin-oidc" ], "PostLogoutRedirectUris": [ "http://openidclientdemo.com:8001/signout-callback-oidc" ], "AllowedScopes": [ "openid", "profile", "default-api" ], "AllowOfflineAccess": "true" } ] }, "elasticsearch": { "index": "events", "url": "http://docker.dev.sasi.com.es:9200/", "user": "elastic", "pass": "changeme" }, "SignalR": { "Url": "http://name:8075/commeventoslog/" }, "Payment": { "PayPal": { "IsActive": "true", "Environment": "sandbox", "BaseUrl": "https://api.sandbox.paypal.com/v1", "ClientId": "", "ClientSecret": "", "DemoUsername": "", "DemoPassword": "" }, "Stripe": { "IsActive": "true", "BaseUrl": "https://api.stripe.com/v1", "SecretKey": "", "PublishableKey": "", "WebhookSecret": "" } } }
appsettings.Production.json
{ "ConnectionStrings": { "Default": "Server=name; Database=my-DB; User=usr; Password=------------;" }, "App": { "ServerRootAddress": "http://name:8075/", "ClientRootAddress": "http://name:8076/", "CorsOrigins": "http://*.mycompany.com,http://localhost:4201,http://localhost:49152,http://name:8076,http://localhost:8076", "SwaggerEndPoint": "/swagger/v1/swagger.json", "AllowAnonymousSignalRConnection": "true" } }
appsettings.Starting.json
{ "ConnectionStrings": { "Default": "Server=name; Database=my-DB; User=usr; Password=--------------;" }, "App": { "ServerRootAddress": "http://name:8075/", "ClientRootAddress": "http://name:8076/", "CorsOrigins": "http://*.mycompany.com,http://localhost:4201,http://localhost:49152,http://name:8076" } }
TokenAuth/Authenticate result
{ "result":{ "accessToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIzIiwibmFtZSI6ImFkbWluIiwiQXNwT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GctEJC3j8GnhNsQRpBk21Ugzj/nP245radSUJG8ChH8VhPlu1lMqx4s9L/V3OXZQgvuAXG1hShhh5joTcj9DeCPch21x+AG4cIIM+7IuuckAsLKKB5DSkt5c8pJS7yFsgg3zujBF4V8MgxpvmbS1jc5zfHJ+TJ9J9xc2hF662O6yHXcKt5VLlWGEaCywlvOp2okCxvBq0L2HfxEK1FMBqbiUUv4RZ9vpDRvPAGuAnhS4HuAl6zExTwy6x8uevwvOmuI6tFOD53EJWmJaB3MFRM=", "expireInSeconds":86400, "shouldResetPassword":false, "passwordResetCode":null, "userId":3, "requiresTwoFactorVerification":false, "twoFactorAuthProviders":null, "twoFactorRememberClientToken":null, "returnUrl":null, "refreshToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIzIiwibmFtZSI6ImFkbWluIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJFU1hIWFBRMkNDWE0zUEZOUFFSU1BLSjVFSkJCNUdFSiIsInJvbGUiOiJBZG1pbiIsImh0dHA6Ly93d3cuYXNwbmV0Ym9pbGVycGxhdGUuY29tL2lkZW50aXR5L2NsYWltcy90ZW5hbnRJZCI6IjIiLCJqdGkiOiJmZWFmNTNlOC1mZjQwLTRmYWQtODcwNi1mZjRiNjkyNjczMmEiLCJpYXQiOjE1NTkyMjM2MTcsInRva2VuX3ZhbGlkaXR5X2tleSI6IjNkNzZlMTIyLWIyY2YtNDlmZS1iOGI2LTdlNWM5ZWZjN2UyNiIsInVzZXJfaWRlbnRpZmllciI6IjNAMiIsIm5iZiI6MTU1OTIyMzYxNywiZXhwIjoxNTkwNzU5NjE3LCJpc3MiOiJHZW5UaW1lRGVtbyIsImF1ZCI6IkdlblRpbWVEZW1vIn0.qmCMO12ZfnPqizwBoqKhbj4-lx7YTqZHqRQmWwKDnDM" }, "targetUrl":null, "success":true, "error":null, "unAuthorizedRequest":false, "abp":true }
Session/GetCurrentLoginInformations result
{ "result":{ "user":null, "tenant":{ "tenancyName":"seidor", "name":"SEIDOR", "logoId":null, "logoFileType":null, "customCssId":null, "subscriptionEndDateUtc":null, "isInTrialPeriod":false, "subscriptionPaymentType":0, "edition":{ "displayName":"Standard", "trialDayCount":null, "monthlyPrice":null, "annualPrice":null, "isHighestEdition":true, "isFree":true, "id":1 }, "creationTime":"2019-05-21T10:45:33.0202391", "paymentPeriodType":0, "subscriptionDateString":"Unlimited", "creationTimeString":"5/21/2019", "id":2 }, "application":{ "version":"6.9.0.0", "releaseDate":"2019-05-30T11:38:59.4703924+02:00", "currency":"USD", "currencySign":"$", "allowTenantsToChangeEmailSettings":false, "features":{
}
},
"theme":{
"baseSettings":{
"theme":"default",
"layout":{
"layoutType":"fluid",
"contentSkin":"light2",
"themeColor":"blue",
"fixedBody":false,
"mobileFixedBody":false
},
"header":{
"desktopFixedHeader":true,
"mobileFixedHeader":true,
"headerSkin":"dark"
},
"menu":{
"position":"left",
"asideSkin":"dark",
"fixedAside":true,
"allowAsideMinimizing":true,
"defaultMinimizedAside":false,
"allowAsideHiding":false,
"defaultHiddenAside":false,
"submenuToggle":"Accordion"
},
"footer":{
"fixedFooter":true
}
},
"isLeftMenuUsed":true,
"isTopMenuUsed":false,
"isTabMenuUsed":false,
"allowMenuScroll":true
}
}, "targetUrl":null, "success":true, "error":null, "unAuthorizedRequest":false, "abp":true }
Thanks!
2 Answer(s)
-
0
Can you look at chrome's web request? Is it successful to get the token?
If you don't have private data in your log file, you can share it directly here. If there is any, you can send it to [email protected]
-
0
Solved, thanks!