File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ export class BaseNegotiator implements Negotiator {
9595 return stored ;
9696 }
9797
98- if ( ! permissions ) this . error ( BadRequestHttpError , 'The provided ticket is not valid.' ) ;
98+ if ( ! permissions ) {
99+ this . error ( BadRequestHttpError , 'A token request without existing ticket should include requested permissions.' ) ;
100+ }
99101
100102 return await this . ticketingStrategy . initializeTicket ( permissions ) ;
101103 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Permission } from "../views/Permission";
55 * A ReType constant for {@link DialogInput:type}.
66 */
77export const DialogInput = ( {
8- ticket : string ,
8+ ticket : $ ( string ) ,
99 claim_token : $ ( string ) ,
1010 claim_token_format : $ ( string ) , // TODO: switch to array of claims objects with unknown structure
1111 pct : $ ( string ) ,
Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ export class TokenRequestHandler implements HttpHandler {
3737
3838 const params = input . request . body ;
3939
40- if ( params [ 'grant_type' ] !== 'urn:ietf:params:oauth:grant-type:uma-ticket' ) {
41- throw new BadRequestHttpError ( `Expected 'grant_type' to be set to 'urn:ietf:params:oauth:grant-type:uma-ticket'` ) ;
42- }
40+ // if (params['grant_type'] !== 'urn:ietf:params:oauth:grant-type:uma-ticket') {
41+ // throw new BadRequestHttpError(
42+ // `Expected 'grant_type' to be set to 'urn:ietf:params:oauth:grant-type:uma-ticket'
43+ // `);
44+ // }
4345
4446 try {
4547 reType ( params , DialogInput ) ;
You can’t perform that action at this time.
0 commit comments