Add groups scope to OIDC authorization request (#3226)
This commit is contained in:
+1
-1
@@ -141,7 +141,7 @@
|
|||||||
id="scope"
|
id="scope"
|
||||||
[readonly]="true"
|
[readonly]="true"
|
||||||
disabled="disabled"
|
disabled="disabled"
|
||||||
value="openid profile email offline_access"/>
|
value="openid profile email groups offline_access"/>
|
||||||
<span class="field-hint">{{ t('providerConfig.scopeHint') }}</span>
|
<span class="field-hint">{{ t('providerConfig.scopeHint') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -74,7 +74,7 @@ export class AuthenticationSettingsComponent implements OnInit {
|
|||||||
{labelKey: 'infoPanel.redirectUri', value: `${window.location.origin}/oauth2-callback`},
|
{labelKey: 'infoPanel.redirectUri', value: `${window.location.origin}/oauth2-callback`},
|
||||||
{labelKey: 'infoPanel.postLogoutRedirectUri', value: `${window.location.origin}/login`},
|
{labelKey: 'infoPanel.postLogoutRedirectUri', value: `${window.location.origin}/login`},
|
||||||
{labelKey: 'infoPanel.backChannelLogoutUri', value: `${window.location.origin}/api/v1/auth/oidc/backchannel-logout`},
|
{labelKey: 'infoPanel.backChannelLogoutUri', value: `${window.location.origin}/api/v1/auth/oidc/backchannel-logout`},
|
||||||
{labelKey: 'infoPanel.requiredScopes', value: 'openid profile email offline_access'},
|
{labelKey: 'infoPanel.requiredScopes', value: 'openid profile email groups offline_access'},
|
||||||
{labelKey: 'infoPanel.pkceMethod', value: 'S256'},
|
{labelKey: 'infoPanel.pkceMethod', value: 'S256'},
|
||||||
{labelKey: 'infoPanel.grantType', value: 'Authorization Code'},
|
{labelKey: 'infoPanel.grantType', value: 'Authorization Code'},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export class OidcService {
|
|||||||
authorizationEndpoint?: string
|
authorizationEndpoint?: string
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
const redirectUri = `${window.location.origin}/oauth2-callback`;
|
const redirectUri = `${window.location.origin}/oauth2-callback`;
|
||||||
const scope = 'openid profile email offline_access';
|
const scope = 'openid profile email groups offline_access';
|
||||||
|
|
||||||
if (authorizationEndpoint) {
|
if (authorizationEndpoint) {
|
||||||
return Promise.resolve(this.buildUrl(authorizationEndpoint, clientId, redirectUri, scope, codeChallenge, state, nonce));
|
return Promise.resolve(this.buildUrl(authorizationEndpoint, clientId, redirectUri, scope, codeChallenge, state, nonce));
|
||||||
|
|||||||
+1
@@ -229,6 +229,7 @@ export class LibraryMetadataSettingsComponent implements OnInit {
|
|||||||
goodreadsId: {p1: null, p2: null, p3: null, p4: null},
|
goodreadsId: {p1: null, p2: null, p3: null, p4: null},
|
||||||
comicvineId: {p1: null, p2: null, p3: null, p4: null},
|
comicvineId: {p1: null, p2: null, p3: null, p4: null},
|
||||||
hardcoverId: {p1: null, p2: null, p3: null, p4: null},
|
hardcoverId: {p1: null, p2: null, p3: null, p4: null},
|
||||||
|
hardcoverBookId: {p1: null, p2: null, p3: null, p4: null},
|
||||||
googleId: {p1: null, p2: null, p3: null, p4: null},
|
googleId: {p1: null, p2: null, p3: null, p4: null},
|
||||||
amazonRating: {p1: null, p2: null, p3: null, p4: null},
|
amazonRating: {p1: null, p2: null, p3: null, p4: null},
|
||||||
amazonReviewCount: {p1: null, p2: null, p3: null, p4: null},
|
amazonReviewCount: {p1: null, p2: null, p3: null, p4: null},
|
||||||
|
|||||||
Reference in New Issue
Block a user