File tree Expand file tree Collapse file tree 7 files changed +48
-6
lines changed
kotlin-oauth2-server-client-inmemory
kotlin-oauth2-server-core
kotlin-oauth2-server-identity-inmemory
kotlin-oauth2-server-ktor
kotlin-oauth2-server-token-store-inmemory Expand file tree Collapse file tree 7 files changed +48
-6
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,48 @@ Configuring the oauth2 server for any framework should be simple and understanda
66It encourages to adapt to existing implementations instead the other way around.
77## Frameworks
88### Ktor
9+ Setup
10+ ``` xml
11+ <repositories >
12+ <repository >
13+ <id >myndocs-oauth2</id >
14+ <url >https://repo.myndocs.nl/repository/oauth2</url >
15+ </repository >
16+ </repositories >
17+ ```
18+ ``` xml
19+ <dependency >
20+ <groupId >nl.myndocs</groupId >
21+ <artifactId >kotlin-oauth2-server-core</artifactId >
22+ <version >${myndocs.oauth.version}</version >
23+ </dependency >
24+ <dependency >
25+ <groupId >nl.myndocs</groupId >
26+ <artifactId >kotlin-oauth2-server-ktor</artifactId >
27+ <version >${myndocs.oauth.version}</version >
28+ </dependency >
29+ <dependency >
30+ <groupId >nl.myndocs</groupId >
31+ <artifactId >kotlin-oauth2-server-client-inmemory</artifactId >
32+ <version >${myndocs.oauth.version}</version >
33+ </dependency >
34+ <dependency >
35+ <groupId >nl.myndocs</groupId >
36+ <artifactId >kotlin-oauth2-server-identity-inmemory</artifactId >
37+ <version >${myndocs.oauth.version}</version >
38+ </dependency >
39+ <dependency >
40+ <groupId >nl.myndocs</groupId >
41+ <artifactId >kotlin-oauth2-server-token-store-inmemory</artifactId >
42+ <version >${myndocs.oauth.version}</version >
43+ </dependency >
44+ <dependency >
45+ <groupId >com.google.code.gson</groupId >
46+ <artifactId >gson</artifactId >
47+ <version >2.8.5</version >
48+ </dependency >
49+ ```
50+
951Basic setup for Ktor:
1052``` kotlin
1153embeddedServer(Netty , 8080 ) {
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >kotlin-oauth2-server</artifactId >
77 <groupId >nl.myndocs</groupId >
8- <version >1.0-SNAPSHOT </version >
8+ <version >0. 1.0</version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >kotlin-oauth2-server</artifactId >
77 <groupId >nl.myndocs</groupId >
8- <version >1.0-SNAPSHOT </version >
8+ <version >0. 1.0</version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >kotlin-oauth2-server</artifactId >
77 <groupId >nl.myndocs</groupId >
8- <version >1.0-SNAPSHOT </version >
8+ <version >0. 1.0</version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >kotlin-oauth2-server</artifactId >
77 <groupId >nl.myndocs</groupId >
8- <version >1.0-SNAPSHOT </version >
8+ <version >0. 1.0</version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >kotlin-oauth2-server</artifactId >
77 <groupId >nl.myndocs</groupId >
8- <version >1.0-SNAPSHOT </version >
8+ <version >0. 1.0</version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 77 <groupId >nl.myndocs</groupId >
88 <artifactId >kotlin-oauth2-server</artifactId >
99 <packaging >pom</packaging >
10- <version >1.0-SNAPSHOT </version >
10+ <version >0. 1.0</version >
1111
1212 <properties >
1313 <kotlin .version>1.2.60</kotlin .version>
You can’t perform that action at this time.
0 commit comments