Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wickenico/auth0-ktor
PoC of how to integrate Auth0 with a Ktor-based web app.
https://github.com/wickenico/auth0-ktor
auth0 authentication authorization kotlin ktor
Last synced: 30 days ago
JSON representation
PoC of how to integrate Auth0 with a Ktor-based web app.
- Host: GitHub
- URL: https://github.com/wickenico/auth0-ktor
- Owner: wickenico
- Created: 2023-09-30T21:24:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-02T09:58:19.000Z (over 1 year ago)
- Last Synced: 2024-11-11T11:36:03.231Z (3 months ago)
- Topics: auth0, authentication, authorization, kotlin, ktor
- Language: Kotlin
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Auth0 Ktor PoC
This is an PoC project demonstrating how to integrate Auth0 authentication and authorization with a Ktor-based web application.
## Table of Contents
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Configuration](#configuration)
- - [Links](#links)## Getting Started
Follow these steps to set up and run the Auth0 Ktor PoC locally.
### Prerequisites
Before you begin, ensure you have met the following requirements:
- Kotlin and Ktor development environment set up.
- An Auth0 account with a configured application.### Installation
1. Clone this repository:
```bash
git clone https://github.com/wickenico/Auth0-ktor.git1. Move to directory:
```bash
cd Auth0-ktor1. Start Ktor Application:
```bash
./gradlew run### Configuration
1. Create a **_.env_** file in root of the project. Replace the values with your own credentials:
```bash
AUTH0_AUDIENCE="YOUR_AUDIENCE"
AUTH0_ISSUER="YOUR_ISSUER"
- **Audience** is the identifier of the API you want to call. It can be found in the API section of the Auth0 dashboard.
- **Issuer** is the URL of the authorization server that will perform authentication. It can be found in the Settings section of the Auth0 dashboard.## Links
- https://auth0.com/blog/creating-an-http-api-with-ktor-and-kotlin/
- https://auth0.com/blog/adding-auth0-authorization-to-a-ktor-http-api/
- https://auth0.com/blog/adding-auth0-rbac-authorization-to-a-ktor-api/