Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Firefly Framework - Identity Provider (IDP)

[![CI](https://github.com/fireflyframework/fireflyframework-idp/actions/workflows/ci.yml/badge.svg)](https://github.com/fireflyframework/fireflyframework-idp/actions/workflows/ci.yml)
[![CI](https://github.com/fireflyframework/fireflyframework-security-idp/actions/workflows/ci.yml/badge.svg)](https://github.com/fireflyframework/fireflyframework-security-idp/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
[![Java](https://img.shields.io/badge/Java-21%2B-orange.svg)](https://openjdk.org)
[![Spring Boot](https://img.shields.io/badge/Spring%20Boot-3.x-green.svg)](https://spring.io/projects/spring-boot)
Expand Down Expand Up @@ -39,10 +39,10 @@ The concrete provider is selected at runtime with the `firefly.idp.provider` pro

| Provider value | Adapter module | Backend |
| --- | --- | --- |
| `keycloak` | [`fireflyframework-idp-keycloak`](https://github.com/fireflyframework/fireflyframework-idp-keycloak) | Keycloak Admin API + token endpoint |
| `cognito` | [`fireflyframework-idp-aws-cognito`](https://github.com/fireflyframework/fireflyframework-idp-aws-cognito) | AWS Cognito User Pools |
| `azure-ad` | [`fireflyframework-idp-azure-ad`](https://github.com/fireflyframework/fireflyframework-idp-azure-ad) | Microsoft Entra ID (Azure AD) |
| `internal-db` | [`fireflyframework-idp-internal-db`](https://github.com/fireflyframework/fireflyframework-idp-internal-db) | Local database-backed identity store |
| `keycloak` | [`fireflyframework-security-idp-keycloak`](https://github.com/fireflyframework/fireflyframework-security-idp-keycloak) | Keycloak Admin API + token endpoint |
| `cognito` | [`fireflyframework-security-idp-aws-cognito`](https://github.com/fireflyframework/fireflyframework-security-idp-aws-cognito) | AWS Cognito User Pools |
| `azure-ad` | [`fireflyframework-security-idp-azure-ad`](https://github.com/fireflyframework/fireflyframework-security-idp-azure-ad) | Microsoft Entra ID (Azure AD) |
| `internal-db` | [`fireflyframework-security-idp-internal-db`](https://github.com/fireflyframework/fireflyframework-security-idp-internal-db) | Local database-backed identity store |

## Features

Expand Down Expand Up @@ -74,13 +74,13 @@ Add the core abstraction together with exactly one provider adapter. The version
<!-- Core IDP abstraction (this module) -->
<dependency>
<groupId>org.fireflyframework</groupId>
<artifactId>fireflyframework-idp</artifactId>
<artifactId>fireflyframework-security-idp</artifactId>
</dependency>

<!-- Choose one provider adapter -->
<dependency>
<groupId>org.fireflyframework</groupId>
<artifactId>fireflyframework-idp-keycloak</artifactId>
<artifactId>fireflyframework-security-idp-keycloak</artifactId>
</dependency>
</dependencies>
```
Expand All @@ -90,7 +90,7 @@ If you are not inheriting the Firefly parent, pin the version explicitly:
```xml
<dependency>
<groupId>org.fireflyframework</groupId>
<artifactId>fireflyframework-idp</artifactId>
<artifactId>fireflyframework-security-idp</artifactId>
<version>26.05.08</version>
</dependency>
```
Expand All @@ -110,8 +110,8 @@ With the chosen adapter on the classpath, its `IdpAdapter` bean is auto-configur
**2. Or consume the `IdpAdapter` directly** from your own services:

```java
import org.fireflyframework.idp.adapter.IdpAdapter;
import org.fireflyframework.idp.dtos.*;
import org.fireflyframework.security.idp.adapter.IdpAdapter;
import org.fireflyframework.security.idp.dtos.*;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;
Expand Down Expand Up @@ -207,7 +207,7 @@ Adapters wrap their authentication calls with `IdpMetrics.timedAuthentication(pr
## Documentation

- Firefly Framework documentation hub and module catalog: [github.com/fireflyframework](https://github.com/fireflyframework)
- Provider adapters: [Keycloak](https://github.com/fireflyframework/fireflyframework-idp-keycloak) · [AWS Cognito](https://github.com/fireflyframework/fireflyframework-idp-aws-cognito) · [Azure AD](https://github.com/fireflyframework/fireflyframework-idp-azure-ad) · [Internal DB](https://github.com/fireflyframework/fireflyframework-idp-internal-db)
- Provider adapters: [Keycloak](https://github.com/fireflyframework/fireflyframework-security-idp-keycloak) · [AWS Cognito](https://github.com/fireflyframework/fireflyframework-security-idp-aws-cognito) · [Azure AD](https://github.com/fireflyframework/fireflyframework-security-idp-azure-ad) · [Internal DB](https://github.com/fireflyframework/fireflyframework-security-idp-internal-db)

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<relativePath/>
</parent>

<artifactId>fireflyframework-idp</artifactId>
<artifactId>fireflyframework-security-idp</artifactId>
<version>26.06.01</version>
<packaging>jar</packaging>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
*/


package org.fireflyframework.idp.adapter;
package org.fireflyframework.security.idp.adapter;

import org.fireflyframework.idp.dtos.CreateUserRequest;
import org.fireflyframework.idp.dtos.CreateUserResponse;
import org.fireflyframework.idp.dtos.RegisterUserRequest;
import org.fireflyframework.idp.port.AuthenticationPort;
import org.fireflyframework.idp.port.MfaPort;
import org.fireflyframework.idp.port.RoleScopePort;
import org.fireflyframework.idp.port.SessionPort;
import org.fireflyframework.idp.port.TokenIntrospectionPort;
import org.fireflyframework.idp.port.UserAdminPort;
import org.fireflyframework.security.idp.dtos.CreateUserRequest;
import org.fireflyframework.security.idp.dtos.CreateUserResponse;
import org.fireflyframework.security.idp.dtos.RegisterUserRequest;
import org.fireflyframework.security.idp.port.AuthenticationPort;
import org.fireflyframework.security.idp.port.MfaPort;
import org.fireflyframework.security.idp.port.RoleScopePort;
import org.fireflyframework.security.idp.port.SessionPort;
import org.fireflyframework.security.idp.port.TokenIntrospectionPort;
import org.fireflyframework.security.idp.port.UserAdminPort;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2024 Firefly Software Foundation.
*/
package org.fireflyframework.idp.config;
package org.fireflyframework.security.idp.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright (c) 2024 Firefly Software Foundation.
*/
package org.fireflyframework.idp.config;
package org.fireflyframework.security.idp.config;

import lombok.extern.slf4j.Slf4j;
import org.fireflyframework.idp.adapter.IdpAdapter;
import org.fireflyframework.idp.web.IdpController;
import org.fireflyframework.security.idp.adapter.IdpAdapter;
import org.fireflyframework.security.idp.web.IdpController;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


package org.fireflyframework.idp.dtos;
package org.fireflyframework.security.idp.dtos;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.fireflyframework.idp.observability;
package org.fireflyframework.security.idp.observability;

import io.micrometer.core.instrument.MeterRegistry;
import org.fireflyframework.observability.metrics.FireflyMetricsSupport;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.fireflyframework.idp.observability;
package org.fireflyframework.security.idp.observability;

import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.boot.autoconfigure.AutoConfiguration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* limitations under the License.
*/

package org.fireflyframework.idp.port;
package org.fireflyframework.security.idp.port;

import org.fireflyframework.idp.dtos.LoginRequest;
import org.fireflyframework.idp.dtos.LogoutRequest;
import org.fireflyframework.idp.dtos.RefreshRequest;
import org.fireflyframework.idp.dtos.TokenResponse;
import org.fireflyframework.security.idp.dtos.LoginRequest;
import org.fireflyframework.security.idp.dtos.LogoutRequest;
import org.fireflyframework.security.idp.dtos.RefreshRequest;
import org.fireflyframework.security.idp.dtos.TokenResponse;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

package org.fireflyframework.idp.port;
package org.fireflyframework.security.idp.port;

import org.fireflyframework.idp.dtos.MfaChallengeResponse;
import org.fireflyframework.idp.dtos.MfaVerifyRequest;
import org.fireflyframework.security.idp.dtos.MfaChallengeResponse;
import org.fireflyframework.security.idp.dtos.MfaVerifyRequest;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* limitations under the License.
*/

package org.fireflyframework.idp.port;
package org.fireflyframework.security.idp.port;

import org.fireflyframework.idp.dtos.AssignRolesRequest;
import org.fireflyframework.idp.dtos.CreateRolesRequest;
import org.fireflyframework.idp.dtos.CreateRolesResponse;
import org.fireflyframework.idp.dtos.CreateScopeRequest;
import org.fireflyframework.idp.dtos.CreateScopeResponse;
import org.fireflyframework.security.idp.dtos.AssignRolesRequest;
import org.fireflyframework.security.idp.dtos.CreateRolesRequest;
import org.fireflyframework.security.idp.dtos.CreateRolesResponse;
import org.fireflyframework.security.idp.dtos.CreateScopeRequest;
import org.fireflyframework.security.idp.dtos.CreateScopeResponse;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

package org.fireflyframework.idp.port;
package org.fireflyframework.security.idp.port;

import org.fireflyframework.idp.dtos.SessionInfo;
import org.fireflyframework.security.idp.dtos.SessionInfo;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;

Expand Down
Loading
Loading