generated from cuioss/cui-java-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/oauth-logging-docu
- Loading branch information
Showing
243 changed files
with
1,661 additions
and
3,158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
= portal-authentication | ||
|
||
== What is it? | ||
|
||
Groups all modules providing authentication and authorization for the cuioss-portal. | ||
|
||
Within your code, you usually interact with types from link:portal-authentication-api/[portal-authentication-api]. | ||
|
||
It is assumed that at least one of the runtime modules is available: | ||
|
||
* link:portal-authentication-oauth/[portal-authentication-oauth]: Default implementation for integrating against oauth2 / OICD. | ||
|
||
* link:portal-authentication-dummy/[portal-authentication-dummy]: | ||
Implementation for cases where it is only needed technically. | ||
The implementation will always return a not-authenticated UserInfo. | ||
In contrast to 'link:portal-authentication-mock/[portal-authentication-mock]' this module can be used in production environments. | ||
|
||
* link:portal-authentication-mock/[portal-authentication-mock]: | ||
Implementation for cases where it is only needed technically or for documentation purpose. | ||
In contrast to 'portal-authentication-dummy' this module must never be used in production environments. | ||
|
||
== Usage | ||
|
||
The central object ist the `@Dependent`-scoped `AuthenticatedUserInfo` | ||
that has a number of methods interacting with the logged-in user. | ||
|
||
[source,java] | ||
---- | ||
@Inject | ||
private AuthenticatedUserInfo userProvider; | ||
---- | ||
|
||
See link:portal-authentication-api/[portal-authentication-api] for more details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
modules/authentication/portal-authentication-api/README.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
= portal-authentication-api | ||
|
||
== What is it? | ||
Provides types for handling authentication and authorization related information within the cui-portal. | ||
It is meant as an abstraction over different ways of authentication and authorization, | ||
see link:../[portal-authentication] for the different runtimes. | ||
|
||
== Maven Coordinates | ||
|
||
[source, xml] | ||
---- | ||
<dependency> | ||
<groupId>de.cuioss.portal.authentication</groupId> | ||
<artifactId>portal-authentication-api</artifactId> | ||
</dependency> | ||
---- | ||
|
||
== Usage | ||
|
||
The central object ist the `@Dependent`-scoped `AuthenticatedUserInfo` | ||
that has a number of methods interacting with the logged-in user. | ||
|
||
[source,java] | ||
---- | ||
@Inject | ||
private AuthenticatedUserInfo userProvider; | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>de.cuioss.portal.authentication</groupId> | ||
<artifactId>authentication</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>portal-authentication-api</artifactId> | ||
<name>Portal Authentication API</name> | ||
<description>Api for the different way of authentication within the portal</description> | ||
<properties> | ||
<maven.jar.plugin.automatic.module.name> | ||
de.cuioss.portal.authentication.api</maven.jar.plugin.automatic.module.name> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>jakarta.inject</groupId> | ||
<artifactId>jakarta.inject-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>jakarta.servlet</groupId> | ||
<artifactId>jakarta.servlet-api</artifactId> | ||
</dependency> | ||
</dependencies> | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>de.cuioss.portal.authentication</groupId> | ||
<artifactId>authentication</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>portal-authentication-api</artifactId> | ||
<name>Portal Authentication API</name> | ||
<description>Api for the different way of authentication within the portal</description> | ||
<properties> | ||
<maven.jar.plugin.automatic.module.name> | ||
de.cuioss.portal.authentication.api | ||
</maven.jar.plugin.automatic.module.name> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>jakarta.inject</groupId> | ||
<artifactId>jakarta.inject-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>jakarta.servlet</groupId> | ||
<artifactId>jakarta.servlet-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>de.cuioss.portal.core</groupId> | ||
<artifactId>portal-common-cdi</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
...n/portal-authentication-api/src/main/java/de/cuioss/portal/authentication/PortalUser.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.