Authentication - OAuth2

Login

Gemini Authentication is under development. To enable it you need to use the following Spring parameter. If you don't specify a value Authentication is enabled out of the box.

gemini.auth=true

Gemini authentication is handled by the gemini-auth module. Gemini uses Spring OAuth2 framework to provide Authentication and once logged gives a signed JWT token.

post
Login Endpoint

/api/auth/login
Request
Response
Body Parameters
password
required
string
Password
username
required
string
Username
200: OK
  {
"access_token":"____the_JWT__token___",
"refresh_token":"__the_JWT_refresh_token____",
"token_type":"bearer",
"expires_in":3600
}

Admin user was created automatically by Gemini

username: Admin password: Admin

Try Authentication Flow With Swagger UI

OpenAPI spec created by Gemini already provides Authentication features. Try the Auth Flow setting up the Docker Environment and use Swagger UI