/
OpenIdConnectProviderConfiguration.java
129 lines (107 loc) · 3.5 KB
/
OpenIdConnectProviderConfiguration.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.portal.security.sso.openid.connect.internal.configuration;
import aQute.bnd.annotation.metatype.Meta;
import com.liferay.portal.configuration.metatype.annotations.ExtendedObjectClassDefinition;
/**
* @author Michael C. Han
*/
@ExtendedObjectClassDefinition(
category = "sso", factoryInstanceLabelAttribute = "providerName",
scope = ExtendedObjectClassDefinition.Scope.COMPANY
)
@Meta.OCD(
factory = true,
id = "com.liferay.portal.security.sso.openid.connect.internal.configuration.OpenIdConnectProviderConfiguration",
localization = "content/Language",
name = "open-id-connect-provider-configuration-name"
)
public interface OpenIdConnectProviderConfiguration {
@Meta.AD(
deflt = "", description = "provider-name-help", name = "provider-name"
)
public String providerName();
@Meta.AD(
deflt = "openid email profile", description = "scopes-help",
name = "scopes"
)
public String scopes();
@Meta.AD(
deflt = "", description = "discovery-endpoint-help",
name = "discovery-endpoint", required = false
)
public String discoveryEndPoint();
@Meta.AD(
deflt = "360000", description = "discovery-endpoint-cache-help",
name = "discovery-endpoint-cache-in-millis", required = false
)
public long discoveryEndPointCacheInMillis();
@Meta.AD(
deflt = "", description = "authorization-endpoint-help",
name = "authorization-endpoint", required = false
)
public String authorizationEndPoint();
@Meta.AD(
deflt = "", description = "issuer-url-help", name = "issuer-url",
required = false
)
public String issuerURL();
@Meta.AD(
deflt = "", description = "jwks-uri-help", name = "jwks-uri",
required = false
)
public String jwksURI();
@Meta.AD(
deflt = "RS256", description = "id-token-signing-alg-values-help",
name = "id-token-signing-alg-values", required = false
)
public String[] idTokenSigningAlgValues();
@Meta.AD(
deflt = "", description = "subject-types-help", name = "subject-types",
required = false
)
public String[] subjectTypes();
@Meta.AD(
deflt = "", description = "token-endpoint-help",
name = "token-endpoint", required = false
)
public String tokenEndPoint();
@Meta.AD(
deflt = "1000", description = "token-connection-timeout-help",
name = "token-connection-timeout", required = false
)
public int tokenConnectionTimeout();
@Meta.AD(
deflt = "", description = "user-info-endpoint-help",
name = "user-info-endpoint", required = false
)
public String userInfoEndPoint();
@Meta.AD(
deflt = "", description = "open-id-connect-client-id-help",
name = "open-id-connect-client-id"
)
public String openIdConnectClientId();
@Meta.AD(
deflt = "", description = "open-id-connect-client-secret-help",
name = "open-id-connect-client-secret"
)
public String openIdConnectClientSecret();
@Meta.AD(
deflt = "", description = "registered-id-token-signing-alg-help",
name = "registered-id-token-signing-alg", required = false
)
public String registeredIdTokenSigningAlg();
@Meta.AD(
deflt = "",
description = "custom-authorization-request-parameters-help",
name = "custom-authorization-request-parameters", required = false
)
public String[] customAuthorizationRequestParameters();
@Meta.AD(
deflt = "", description = "custom-token-request-parameters-help",
name = "custom-token-request-parameters", required = false
)
public String[] customTokenRequestParameters();
}