Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR chores: changeset, api-report, cleaning
Signed-off-by: Ruben Vallejo <rvallejo@vmware.com>
- Loading branch information
1 parent
94cc96c
commit 2b0648e
Showing
12 changed files
with
95 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@backstage/plugin-auth-backend-module-pinniped-provider': minor | ||
--- | ||
|
||
Add new Pinniped auth module and authenticator to be used alongside the new Pinniped auth provider. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@backstage/plugin-auth-backend': patch | ||
--- | ||
|
||
Add Pinniped Auth Provider to list of default auth providers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@backstage/plugin-auth-node': patch | ||
--- | ||
|
||
Adding optional audience parameter to OAuthState type declaration |
28 changes: 28 additions & 0 deletions
28
plugins/auth-backend-module-pinniped-provider/api-report.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## API Report File for "@backstage/plugin-auth-backend-module-pinniped-provider" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
import { BackendFeature } from '@backstage/backend-plugin-api'; | ||
import { BaseClient } from 'openid-client'; | ||
import { OAuthAuthenticator } from '@backstage/plugin-auth-node'; | ||
import { Strategy } from 'openid-client'; | ||
import { TokenSet } from 'openid-client'; | ||
|
||
// @public (undocumented) | ||
export const authModulePinnipedProvider: () => BackendFeature; | ||
|
||
// @public (undocumented) | ||
export const pinnipedAuthenticator: OAuthAuthenticator< | ||
Promise<{ | ||
strategy: Strategy< | ||
{ | ||
tokenset: TokenSet; | ||
}, | ||
BaseClient | ||
>; | ||
client: BaseClient; | ||
}>, | ||
unknown | ||
>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
plugins/auth-backend-module-pinniped-provider/src/config.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright 2020 The Backstage Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
export interface Config { | ||
/** Configuration options for the auth plugin */ | ||
auth?: { | ||
providers?: { | ||
pinniped?: { | ||
[authEnv: string]: { | ||
clientId: string; | ||
federationDomain: string; | ||
/** | ||
* @visibility secret | ||
*/ | ||
clientSecret: string; | ||
scope?: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters