Skip to content

Security solution - OAuth2 github #4

Description

@LinusWestling
  1. Add Dependencies: Add spring-boot-starter-oauth2-client to your pom.xml.
  2. Security Configuration: Create a SecurityConfig to protect your /api/** and /ui/** routes and enable .oauth2Login().
  3. User Mapping: Create a service to map a GitHub user (e.g., octocat) to your internal Actor and assign them a Role (like ADMIN
    or HANDLER).
  4. Properties Setup: Add the GitHub registration settings to application.properties.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions