You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO @angel please confirm that persistentTokenEnabled is always true https://github.com/ORCID/ORCID-Source/blob/master/orcid-web/src/main/webapp/static/javascript/ng1Orcid/app/modules/oauthAuthorization/oauthAuthorization.component.ts#L161
@@ -123,7 +123,8 @@ export class OauthService {
123
123
),
124
124
tap((requestInfo)=>{
125
125
this.requestInfoSubject.next(requestInfo)
126
-
})
126
+
}),
127
+
map((requestInfo)=>requestInfo.redirectUrl)
127
128
)
128
129
}
129
130
@@ -157,12 +158,11 @@ export class OauthService {
157
158
observe: 'response',
158
159
})
159
160
.pipe(
160
-
map((res: HttpResponse<any>)=>{
161
+
switchMap((res: HttpResponse<any>)=>{
161
162
if(res.body&&res.body['error']){
162
-
if(res.body['error']=='access_denied'){
163
+
if(res.body['error']==='access_denied'){
163
164
// Not a server error per see, just a user denied the authorization
0 commit comments