Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set custom ttl #14

Open
shastik opened this issue Nov 14, 2023 · 0 comments
Open

How to set custom ttl #14

shastik opened this issue Nov 14, 2023 · 0 comments

Comments

@shastik
Copy link

shastik commented Nov 14, 2023

Hi,

can you help me how to set custom ttl via configuration?

I tried to set it with:

oauth2.server:
	grants:
		authCode: false
		clientCredentials:
                     ttl: 'PT10M'

		implicit: false
		password: true
		refreshToken: true

but it doesn't work. But it seems it is possible to set a custom value. I found it in file: OAuth2ServerExtension:133:

$ttl = $options->ttl ?? null;

I tried to debug it and $options is not a object, but it is an array:

array
'authCode' => false
'clientCredentials' => array
'ttl' => 'PT10M'
'implicit' => false
'password' => true
'refreshToken' => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant