-
4 votesanswersviews
期望的发现文档中的发布者无效:使用Azure B2C的angular-oauth2-oidc
目前我正在开发一个Angular2应用程序,并希望使用B2C租户进行身份验证 . 它不起作用,因为我收到一个错误: Invalid issuer in discovery document expected: 设置和配置与https://github.com/manfredsteyer/angular-oauth2-oidc中描述的完全相同 . 在给定的示例中,使用以下函数: private co... -
2 votesanswersviews
使用angular-oauth2-oidc和Identity Server 4时无法获取Username / given_name
我正在关注angular-oauth2-oidc文档中的Implicit Workflow示例 . 在我的Angular应用程序中一切正常,我可以登录(在此期间我被重定向到Identity Server),获取我的令牌并使用此令牌访问我的Web Api . 但是,我注意到“given_name”声明为空,因此用户名不会显示在登录页面上 . 具体来说,示例代码中的以下方法似乎返回null: publ... -
4 votesanswersviews
Angular 5 OAuth2:令牌没有设置libary [angular-oauth2-oidc]
我正在尝试配置我的Angular应用程序以使用OAuth2库( angular-oauth2-oidc ) . 在auth.service.ts文件中,我的OAuthService配置为: this.oauthService.loginUrl = 'https://serverdomain.com/authorization/'; this.oauthService.redirectUri... -
1 votesanswersviews
让angular-oauth2-oidc从其他选项卡中检索访问令牌
我正在将angular-oauth2-oidc库与Implicit Flow(使用IdentityServer4服务器)结合使用 . 我已成功设置the Silent Refresh suggestion from the docs . 以下是我在包装器服务中引导的方法: private userSubject = new Subject<User>(); constructor(p... -
3 votesanswersviews
在验证访问令牌角度oauth2 oidc时添加加载页面
我有一个角度页面使用angular-oauth2-oidc和Keycloak OIDC隐式流程 . 使用Keycloak登录后,它将被重定向回登录页面 . 然后,着陆页[app.component.html]将使用 allowAccess() 检查有效令牌,以便相应地显示 main-nav 或 app-cover . 根据我的理解,因为此验证需要花费少量时间,因此在检查这些令牌时,着陆页将首先显... -
2 votesanswersviews
Angular,Keycloak和SSO使用angular-oauth2-oidc自动登录
我们正在尝试在我们的环境中创建以下设置... Angular 4.4应用程序,它使用Keycloak作为具有AD Federation和Kerberos支持的身份验证服务器 . 这是为我们的Intranet用户提供内部Web应用程序的真正SSO体验 . 流: 用户导航到应用程序 应用程序在localStorage中检查有效的令牌 如果没有有效令牌,则启动initImplicitFlow... -
0 votesanswersviews
angular-oauth2-oidc logout无效令牌错误
我有一个角度5应用程序,其中我已经实现了angular2-oauth-oidc和okta . 当我尝试注销时,我收到400 Bad Request错误,说Invalid_token . Session 似乎已经过期了 . 在单击注销按钮时,用于注销的代码如下: this.oauthService.logOut(); 我的app.component.ts文件: this.oauthService... -
2 votesanswersviews
angular-oauth2-oidc未设置access_token
我正在关注angular-oauth2-oidc库的入门指南,但它存储的唯一内容是 nonce 值, access_token 不会出现在任何地方 . 这是我对 AuthConfig 的配置 . export const AUTHCONFIG: AuthConfig = { loginUrl: 'https://login.microsoftonline.com/xxxxxxxx/oaut... -
1 votesanswersviews
OAuthService错误的发行者错误(angular-oauth2-oidc)
我目前正在尝试在我的角度应用程序中实现azure广告身份验证 . 不幸的是我遇到了一些问题 . 以下代码为我提供了我期待的访问令牌 . 要在我的api中实现它,我想使用OpenIDConnect . export class AppComponent implements OnInit { title = 'Sign in test'; constructor(private oauth... -
0 votesanswersviews
angular-oauth2-oidc,如何检测我是否在其他地方登录?
我正在使用angular-oauth2-oidc库与带有keycloak的Implicit Flow . 使用 this.oauthService.initImplicitFlow(); 登录或使用 this.oauthService.logOut(); 注销没有问题 但是,我想知道,是否有可能检查我是否已经在其他地方登录了? (不同的域但使用相同的keycloak服务器) 我搜索了angular... -
4 votesanswersviews
打开多个浏览器选项卡时,应如何处理用户注销用例
我正在使用angular-oauth2-oidc与Identity Server 4 . 用户需要通过OpenId Connect Implicit Flow登录 . 我的Id和Access令牌存储在Web浏览器localStorage中 . 当用户打开多个浏览器选项卡,然后用户从其中一个选项卡注销时,我应该如何处理其余选项卡? 我试图捕获session_terminated事件,并尝试将用户注销... -
1 votesanswersviews
角度应用中的OAuth令牌刷新
我'm using the angular-oauth2-oidc package and IdentityServer3. I'm使用我的网络应用程序中angular-oauth2-oidc包中的自动刷新选项 . 当刷新发生时,我现在在我的详细页面上编辑数据,当刷新发生时,我会突然转回主视图 . 由于我使用基于散列的路由样式,我得到类似“http://myApp/#/detailView/id1...