@@ -19,6 +19,26 @@ export const IdSource = [
19
19
AuthType . Generic ,
20
20
] ;
21
21
22
+ export enum AuthCategoriesEnum {
23
+ ENTERPISE_ENTITY = "Enterprise Identity" ,
24
+ CLOUD_SERVICES = "Cloud Services" ,
25
+ SOCIAL_MEDIA = "Social Media" ,
26
+ DEVELOPMENT = "Development" ,
27
+ TOOLS_AND_PRODUCTIVITY = "Tools & Productivity" ,
28
+ }
29
+
30
+ type AuthCategoriesEnumKey = keyof typeof AuthCategoriesEnum ;
31
+ const AuthCategories = Object . keys ( AuthCategoriesEnum ) . map (
32
+ ( cat ) => {
33
+ const value = AuthCategoriesEnum [ cat as AuthCategoriesEnumKey ] ;
34
+ return {
35
+ label : value ,
36
+ value : cat
37
+ }
38
+ }
39
+ ) ;
40
+
41
+
22
42
export const validatorOptions = [ ] ;
23
43
24
44
export const clientIdandSecretConfig = {
@@ -70,15 +90,15 @@ export const authConfig = {
70
90
form : {
71
91
source : { label : "Source" , isRequire : true } ,
72
92
sourceName : { label : "Source Name" , isRequire : true } ,
73
- sourceDescription : { label : "Source Description" } ,
74
- sourceIcon : { label : "Source Icon" , isIcon : true } ,
75
- sourceCategory : { label : "Source Category" } ,
93
+ sourceDescription : { label : "Source Description" , isRequire : false } ,
94
+ sourceIcon : { label : "Source Icon" , isIcon : true , isRequire : true , } ,
95
+ sourceCategory : { label : "Source Category" , isRequire : true , isList : true , options : AuthCategories } ,
76
96
...clientIdandSecretConfig ,
77
- issuer : { label : 'Issuer URI' , isRequired : true } ,
78
- authorizationEndpoint : { label : 'Authorization Endpoint' , isRequired : true } ,
79
- tokenEndpoint : { label : 'Token Endpoint' , isRequired : true } ,
80
- userInfoEndpoint : { label : 'UserInfo Endpoint' , isRequired : true } ,
81
- // jwks: { label: 'Authorize URL', isRequired : true },
97
+ issuer : { label : 'Issuer URI' , isRequire : true } ,
98
+ authorizationEndpoint : { label : 'Authorization Endpoint' , isRequire : true } ,
99
+ tokenEndpoint : { label : 'Token Endpoint' , isRequire : true } ,
100
+ userInfoEndpoint : { label : 'UserInfo Endpoint' , isRequire : true } ,
101
+ // jwks: { label: 'Authorize URL', isRequire : true },
82
102
scope : "Scope" ,
83
103
// baseUrl: "Base URL",
84
104
// realm: "Realm",
0 commit comments