-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #473 from navikt/jpa
Rewrite to JPA and refactor.
- Loading branch information
Showing
58 changed files
with
1,865 additions
and
1,921 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
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 |
---|---|---|
@@ -1,22 +1,11 @@ | ||
package no.nav.klage | ||
|
||
import no.nav.security.token.support.client.spring.oauth2.EnableOAuth2Client | ||
import no.nav.security.token.support.spring.api.EnableJwtTokenValidation | ||
import org.jetbrains.exposed.spring.autoconfigure.ExposedAutoConfiguration | ||
import org.springframework.boot.autoconfigure.SpringBootApplication | ||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration | ||
import org.springframework.boot.runApplication | ||
import org.springframework.context.annotation.Import | ||
import org.springframework.scheduling.annotation.EnableScheduling | ||
|
||
@SpringBootApplication(exclude = [DataSourceTransactionManagerAutoConfiguration::class]) | ||
@EnableJwtTokenValidation(ignore = ["org.springdoc", "org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController"]) | ||
@EnableOAuth2Client(cacheEnabled = true) | ||
@Import(value = [ExposedAutoConfiguration::class]) | ||
@EnableScheduling | ||
@SpringBootApplication | ||
class Application | ||
|
||
//TODO: EnableOAuth er nødvendig for ny, sjekk om kompatibelt med gammel. | ||
fun main() { | ||
runApplication<Application>() | ||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/kotlin/no/nav/klage/config/SecurityConfiguration.kt
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,12 @@ | ||
package no.nav.klage.config | ||
|
||
import no.nav.security.token.support.client.spring.oauth2.EnableOAuth2Client | ||
import no.nav.security.token.support.spring.api.EnableJwtTokenValidation | ||
import org.springframework.context.annotation.Configuration | ||
|
||
@EnableJwtTokenValidation(ignore = ["org.springdoc", "org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController"]) | ||
@EnableOAuth2Client(cacheEnabled = true) | ||
@Configuration | ||
internal class SecurityConfiguration { | ||
|
||
} |
Oops, something went wrong.