@@ -9,62 +9,6 @@ describe('OAuth 2.0 for Native Apps Best Current Practice features', () => {
99 before ( bootstrap ( import . meta. url ) ) ;
1010
1111 describe ( 'changed native client validations' , ( ) => {
12- describe ( 'Private-use URI Scheme Redirection' , ( ) => {
13- it ( 'allows custom uri scheme uris with localhost' , function ( ) {
14- return addClient ( this . provider , {
15- application_type : 'native' ,
16- client_id : 'native-custom' ,
17- grant_types : [ 'implicit' ] ,
18- response_types : [ 'id_token' ] ,
19- token_endpoint_auth_method : 'none' ,
20- redirect_uris : [ 'com.example.app://localhost/op/callback' , 'com.example.app:/op/callback' ] ,
21- } ) ;
22- } ) ;
23-
24- it ( 'rejects custom schemes without dots with reverse domain name scheme recommendation' , function ( ) {
25- return assert . rejects ( addClient ( this . provider , {
26- application_type : 'native' ,
27- client_id : 'native-custom' ,
28- grant_types : [ 'implicit' ] ,
29- response_types : [ 'id_token' ] ,
30- token_endpoint_auth_method : 'none' ,
31- redirect_uris : [ 'myapp:/op/callback' ] ,
32- } ) , ( err ) => {
33- expect ( err ) . to . have . property ( 'message' , 'invalid_redirect_uri' ) ;
34- expect ( err ) . to . have . property ( 'error_description' , 'redirect_uris for native clients using Custom URI scheme should use reverse domain name based scheme' ) ;
35- return true ;
36- } ) ;
37- } ) ;
38- } ) ;
39-
40- describe ( 'Claimed HTTPS URI Redirection' , ( ) => {
41- it ( 'allows claimed https uris' , function ( ) {
42- return addClient ( this . provider , {
43- application_type : 'native' ,
44- client_id : 'native-custom' ,
45- grant_types : [ 'implicit' ] ,
46- response_types : [ 'id_token' ] ,
47- token_endpoint_auth_method : 'none' ,
48- redirect_uris : [ 'https://claimed.example.com/op/callback' ] ,
49- } ) ;
50- } ) ;
51-
52- it ( 'rejects https if using loopback uris' , function ( ) {
53- return assert . rejects ( addClient ( this . provider , {
54- application_type : 'native' ,
55- client_id : 'native-custom' ,
56- grant_types : [ 'implicit' ] ,
57- response_types : [ 'id_token' ] ,
58- token_endpoint_auth_method : 'none' ,
59- redirect_uris : [ 'https://localhost/op/callback' ] ,
60- } ) , ( err ) => {
61- expect ( err ) . to . have . property ( 'message' , 'invalid_redirect_uri' ) ;
62- expect ( err ) . to . have . property ( 'error_description' , 'redirect_uris for native clients using claimed HTTPS URIs must not be using localhost as hostname' ) ;
63- return true ;
64- } ) ;
65- } ) ;
66- } ) ;
67-
6812 describe ( 'Loopback Interface Redirection' , ( ) => {
6913 it ( 'catches invalid urls being passed in' , function ( ) {
7014 return addClient ( this . provider , {
0 commit comments