backend-app-api,auth: move token typ claim to be a header param
Co-authored-by: Camila Belo <camilaibs@gmail.com> Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
committed by
Camila Belo
parent
018b0910e0
commit
0d2a05418b
@@ -383,14 +383,14 @@ export type CookieConfigurer = (ctx: {
|
||||
*/
|
||||
export const TokenTypes = Object.freeze({
|
||||
user: Object.freeze({
|
||||
typClaim: 'vnd.backstage.user',
|
||||
typParam: 'vnd.backstage.user',
|
||||
audClaim: 'backstage',
|
||||
}),
|
||||
limitedUser: Object.freeze({
|
||||
typClaim: 'vnd.backstage.limited-user',
|
||||
typParam: 'vnd.backstage.limited-user',
|
||||
}),
|
||||
service: Object.freeze({
|
||||
typClaim: 'vnd.backstage.service',
|
||||
typParam: 'vnd.backstage.service',
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -400,11 +400,6 @@ export const TokenTypes = Object.freeze({
|
||||
* @public
|
||||
*/
|
||||
export interface BackstageTokenPayload {
|
||||
/**
|
||||
* The token type
|
||||
*/
|
||||
typ: typeof TokenTypes.user.typClaim;
|
||||
|
||||
/**
|
||||
* The issuer of the token, currently the discovery URL of the auth backend
|
||||
*/
|
||||
@@ -452,11 +447,6 @@ export interface BackstageTokenPayload {
|
||||
* @public
|
||||
*/
|
||||
export interface BackstageUserIdentityProofPayload {
|
||||
/**
|
||||
* The token type
|
||||
*/
|
||||
typ: typeof TokenTypes.limitedUser.typClaim;
|
||||
|
||||
/**
|
||||
* The entity ref of the user
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user