-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fix #1568: NextStep OpenID Connect (OIDC) Support
- Loading branch information
Showing
8 changed files
with
99 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
import org.bouncycastle.jce.provider.BouncyCastleProvider; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration; | ||
import org.springframework.context.annotation.ComponentScan; | ||
import org.springframework.scheduling.annotation.EnableScheduling; | ||
|
||
|
@@ -31,7 +32,7 @@ | |
* | ||
* @author Roman Strobl, [email protected] | ||
*/ | ||
@SpringBootApplication | ||
@SpringBootApplication(exclude = OAuth2ClientAutoConfiguration.class) // OAuth2Client dependency is included, but configuration is optional | ||
@EnableScheduling | ||
@ComponentScan(basePackages = {"io.getlime.security.powerauth.app.nextstep", "com.wultra.core.audit.base"}) | ||
public class NextStepApplication { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,5 +70,15 @@ [email protected]@ | |
|
||
logging.config=${POWERAUTH_NEXTSTEP_LOGGING:} | ||
|
||
# OpenID Connect (OIDC) Settings | ||
#powerauth.nextstep.security.auth.type=OIDC | ||
spring.security.oauth2.client.registration.nextstep-oidc-client.provider=nextstep-oidc-provider | ||
spring.security.oauth2.client.registration.nextstep-oidc-client.client-id= | ||
spring.security.oauth2.client.registration.nextstep-oidc-client.client-secret= | ||
spring.security.oauth2.client.registration.nextstep-oidc-client.authorization-grant-type=authorization_code | ||
spring.security.oauth2.client.registration.nextstep-oidc-client.scope=openid | ||
spring.security.oauth2.client.registration.nextstep-oidc-client.redirectUri= | ||
spring.security.oauth2.client.provider.nextstep-oidc-provider.issuer-uri= | ||
|
||
# Monitoring | ||
management.tracing.sampling.probability=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
powerauth-nextstep/src/test/resources/application-test.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
spring.datasource.url=jdbc:h2:mem:powerauth-nextstep;NON_KEYWORDS=value | ||
spring.datasource.username=sa | ||
spring.datasource.password= | ||
|
||
# Hibernate Configuration | ||
spring.jpa.hibernate.ddl-auto=create-drop | ||
|
||
# Key used for end-to-end encryption of credentials | ||
powerauth.nextstep.e2eEncryption.key=Qee4CK44d8GduTxoHU7JPM2lCs+KF63akIpKyaLk9+c= | ||
|
||
# Key used for database record encryption | ||
powerauth.nextstep.db.master.encryption.key=Bq9h3/QiGTAChopid3Xd4ZDzaJ5rkrqBuzy2vsIZcv4= | ||
|
||
# Liquibase | ||
spring.liquibase.enabled=false | ||
|
||
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration |
60 changes: 0 additions & 60 deletions
60
powerauth-nextstep/src/test/resources/application.properties
This file was deleted.
Oops, something went wrong.