aboutsummaryrefslogtreecommitdiff
path: root/src/app/open-id.service.ts
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-06 20:40:15 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-06 20:40:15 +0200
commit8d75229b6a9a00858a754105b3894b7fcc6acfbe (patch)
treea19f3ccdcb2eae06e43ebd6f7668be52259a1007 /src/app/open-id.service.ts
parent1ade095984e1e4af188cf93c4f422cc5e54cd5ef (diff)
downloadreclaim-ui-8d75229b6a9a00858a754105b3894b7fcc6acfbe.tar.gz
reclaim-ui-8d75229b6a9a00858a754105b3894b7fcc6acfbe.zip
improve authz display
Diffstat (limited to 'src/app/open-id.service.ts')
-rw-r--r--src/app/open-id.service.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts
index a7d2282..c4a26fd 100644
--- a/src/app/open-id.service.ts
+++ b/src/app/open-id.service.ts
@@ -150,6 +150,29 @@ export class OpenIdService {
150 return this.scopesDescriptions[scope]; 150 return this.scopesDescriptions[scope];
151 } 151 }
152 152
153 getRequestedStandardScopesWithDescription(): string[] {
154 var scopes = this.getRequestedScope();
155 var res = [];
156 for (var i = 0; i < scopes.length; i++) {
157 if (undefined !== this.scopesDescriptions[scopes[i]]) {
158 res.push(this.scopesDescriptions[scopes[i]])
159 }
160 }
161 return res;
162 }
163
164 getRequestedNonStandardScopes(): string[] {
165 var scopes = this.getRequestedScope();
166 var res = [];
167 for (var i = 0; i < scopes.length; i++) {
168 if (undefined === this.scopesDescriptions[scopes[i]]) {
169 res.push(scopes[i])
170 }
171 }
172 return res;
173
174 }
175
153 getScopesDescriptionList(): any { 176 getScopesDescriptionList(): any {
154 var scopes = this.getRequestedScope(); 177 var scopes = this.getRequestedScope();
155 var res = []; 178 var res = [];