{"repo":"myndocs/kotlin-oauth2-server","free":true,"listed":false,"github":"https://github.com/myndocs/kotlin-oauth2-server","clone":"git clone https://github.com/myndocs/kotlin-oauth2-server.git","description":"Flexible OAuth2 server library. Support for multiple frameworks","language":"Kotlin","stars":156,"topics":["kotlin","oauth2-server","ktor","javalin","oauth2","sparkjava","http4k","hexagon"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"Kotlin OAuth2 server Goal The goal of this project is to provide a simple OAuth2 library which can be implemented in any framework Configuring the oauth2 server for any framework should be simple and understandable. It encourages to adapt to existing implementations instead the other way around. Frameworks Setup Maven Gradle Framework implementation The following frameworks are supported: - Ktor - Javalin - http4k - Sparkjava Configuration Routing Default endpoints are configured: Type Relative url ----- ------------- token /oauth/token authorize /oauth/authorize token info /oauth/tokeninfo These values can be overridden: In memory In memory implementations are provided to easily setup the project. Identity On the InMemoryIdentity identities can be registered. These are normally your users: Client On the InMemoryClient clients can be registered: Token store The InMemoryTokenStore stores all kinds of tokens. Converters Access token converter By default UUIDAccessTokenConverter is used. With a default time-out of 1 hour. To override the time-out for example to half an hour: To use JWT include the following dependency: This uses auth0 jwt. To configure: Refresh token converter By default UUIDRefreshTokenConverter is used. With a default time-out of 1 hour. To override the time-out for example to half an hour: To use JWT include the following dependency: This uses auth0 jwt. To configure: Code token converter By default UUIDCodeTokenConverter is used. With a default time-out of 5","default_branch":null,"files":null,"tree":[],"storefront":"/r/myndocs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/myndocs/kotlin-oauth2-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}