我正在尝试用LoginRadius验证我的访问令牌(不是JWT),我可以登录,但当我调用我的API后,根据我的身份验证配置,我总是得到未经授权的或不同的错误,我像这样使用。我相信这个权威的url不正确,但我找不到其他的。
services.AddAuthentication(options => {
options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultChallengeScheme = CookieAuthenticationDefaults.AuthenticationScheme;
})
.AddCookie()
.AddOpenIdConnect("login-radius", options => {
// Set the authority to your Auth0 domain
options.Authority = $"https://api.loginradius.com/identity/v2/auth/";
// Configure the Auth0 Client ID and Client Secret
options.ClientId = Configuration["ClientId"];
options.ClientSecret = Configuration["ClientSecret"];
// Set response type to code
options.ResponseType = OpenIdConnectResponseType.Code;
options.Scope.Clear();
options.Scope.Add("openid");
options.CallbackPath = new PathString("/callback");
options.ClaimsIssuer = "loginradius";
// Saves tokens to the AuthenticationProperties
options.SaveTokens = true;
});发布于 2020-12-04 21:54:16
我的帐户没有访问某些功能的权限
发布于 2020-12-02 02:29:41
我相信您正在尝试设置OIDC,并进行配置,请参考OIDC上的LoginRadius文档,因为它需要在管理控制台中配置一些内容和正确的授权URL:https://www.loginradius.com/docs/single-sign-on/tutorial/federated-sso/openid-connect/openid-connect-overview/#otheropenidfunctionality6
请参考OIDC发现端点,它为客户端提供了有关Loginradius应用程序的OpenID连接元数据的配置详细信息。
https://stackoverflow.com/questions/65093981
复制相似问题