Skip to content

Commit

Permalink
feat: add sts properties
Browse files Browse the repository at this point in the history
  • Loading branch information
borisrizov-zf committed Feb 9, 2024
1 parent 56a48eb commit 018d9c0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* *******************************************************************************
* Copyright (c) 2021,2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
* ******************************************************************************
*/

package org.eclipse.tractusx.managedidentitywallets.sts;

import java.time.Duration;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "sts")
public record SecureTokenConfigurationProperties(Duration tokenDuration) {
}
5 changes: 4 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,7 @@ miw:
auth-server-url: ${AUTH_SERVER_URL:http://localhost:8081}
auth-url: ${miw.security.auth-server-url}/realms/${miw.security.realm}/protocol/openid-connect/auth
token-url: ${miw.security.auth-server-url}/realms/${miw.security.realm}/protocol/openid-connect/token
refresh-token-url: ${miw.security.token-url}
refresh-token-url: ${miw.security.token-url}

sts:
token-duration: 60000

0 comments on commit 018d9c0

Please sign in to comment.