Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin pattern #1234

Closed
wants to merge 37 commits into from
Closed

plugin pattern #1234

wants to merge 37 commits into from

Conversation

LiHao-MS
Copy link

@LiHao-MS LiHao-MS commented May 8, 2020

plugin pattern for issue #351

  • add plugin pattern
title: Federated Identity
folder: federated-identity
permalink: /patterns/federated-identity/
categories: Decoupling
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
categories: Decoupling
categories: Integration
permalink: /patterns/federated-identity/
categories: Decoupling
tags:
- authentication
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- authentication
- Decoupling
- authentication
---
## Also known as
claims-based access control
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
claims-based access control
Claims-based access control
claims-based access control

## Intent
The Federated Identity pattern simplify development, minimize the requirement for user administration, and improve the user experience of the application.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also mention that it's about authentication, and especially integrating an external authentication mechanism

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.8.0-beta4</version>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the versions declared in the parent pom.xml. Check this elsewhere too.

try{
this.data = sdf.parse(data);
}catch (ParseException e){
e.printStackTrace();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use logger for output. Check this elsewhere too.

* <p>
*/
public Consumer(){
this.name = "iluwater";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.name = "iluwater";
this.name = "iluwatar";
* when no get response from IdP.
*/
public void register() {
StringBuilder stringBuilder = new StringBuilder();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Java 11 we can use var to declare variables like this. See https://docs.oracle.com/en/java/javase/13/language/local-variable-type-inference.html

private OpenApiPlugin getConfiguredOpenApiPlugin() {
Info info = new Info().version("1.0").description("RESTful Corpus Platform API");
OpenApiOptions options = new OpenApiOptions(info)
.activateAnnotationScanningFor("com.iluwater.dederatedIdentity.IdP")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.activateAnnotationScanningFor("com.iluwater.dederatedIdentity.IdP")
.activateAnnotationScanningFor("com.iluwatar.dederatedIdentity.IdP")
}

@Test
public void test1(){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use meaningful names for the tests so it's easy to see at a glance what it does

@iluwatar
Copy link
Owner

Please find the review comments above. When you're ready for another review please comment on this issue. Thanks!

@iluwatar
Copy link
Owner

The correct issue this PR is implementing is #443

@iluwatar
Copy link
Owner

iluwatar commented Aug 3, 2020

@jasciiz The pull request has remained inactive and is about to be closed. Please comment if you're still working on it.

@ohbus ohbus added the status: stale issues and pull requests that have not had recent interaction label Dec 4, 2020
Copy link
Contributor

@ohbus ohbus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasciiz Please respond if you're still working on it.

@ohbus
Copy link
Contributor

ohbus commented Mar 7, 2021

@jasciiz this PR has been inactive for a long time, we will close it soon if we do not see any updates.

@sonarcloud
Copy link

sonarcloud bot commented Mar 7, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ohbus ohbus linked an issue Jun 14, 2021 that may be closed by this pull request
@iluwatar iluwatar added this to the 1.25.0 milestone Oct 24, 2021
@iluwatar iluwatar closed this Oct 24, 2021
@iluwatar
Copy link
Owner

Closed due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: stale issues and pull requests that have not had recent interaction status: under review
3 participants