Skip to content

Commit e7afa6e

Browse files
authored
Add missing types for token refresh (#497)
1 parent b5d10ad commit e7afa6e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/oidcc_token.erl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,21 +154,31 @@ See https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3.
154154
-type refresh_opts_no_sub() ::
155155
#{
156156
scope => oidcc_scope:scopes(),
157+
preferred_auth_methods => [oidcc_auth_util:auth_method(), ...],
157158
refresh_jwks => oidcc_jwt_util:refresh_jwks_for_unknown_kid_fun(),
158159
request_opts => oidcc_http_util:request_opts(),
159160
url_extension => oidcc_http_util:query_params(),
160-
body_extension => oidcc_http_util:query_params()
161+
body_extension => oidcc_http_util:query_params(),
162+
dpop_nonce => binary(),
163+
trusted_audiences => [binary()] | any,
164+
validate_azp => binary() | [binary()] | client_id | any,
165+
token_request_claims => #{binary() => binary() | integer()}
161166
}.
162167

163168
?DOC(#{since => <<"3.0.0">>}).
164169
-type refresh_opts() ::
165170
#{
166171
scope => oidcc_scope:scopes(),
172+
preferred_auth_methods => [oidcc_auth_util:auth_method(), ...],
167173
refresh_jwks => oidcc_jwt_util:refresh_jwks_for_unknown_kid_fun(),
168174
expected_subject := binary(),
169175
request_opts => oidcc_http_util:request_opts(),
170176
url_extension => oidcc_http_util:query_params(),
171-
body_extension => oidcc_http_util:query_params()
177+
body_extension => oidcc_http_util:query_params(),
178+
dpop_nonce => binary(),
179+
trusted_audiences => [binary()] | any,
180+
validate_azp => binary() | [binary()] | client_id | any,
181+
token_request_claims => #{binary() => binary() | integer()}
172182
}.
173183

174184
?DOC("""

0 commit comments

Comments
 (0)