Skip to content

Commit

Permalink
GMS-91 EOD commit to branch
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-szrnka committed Jan 14, 2024
1 parent e49a831 commit f0092d5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
package io.github.gms.auth;

import static io.github.gms.common.util.Constants.ACCESS_JWT_TOKEN;

import java.util.Date;
import java.util.stream.Stream;

import org.slf4j.MDC;
import org.springframework.data.util.Pair;
import org.springframework.http.HttpStatus;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;
import org.springframework.stereotype.Service;
import org.springframework.web.util.WebUtils;

import io.github.gms.auth.model.AuthorizationResponse;
import io.github.gms.auth.model.GmsUserDetails;
import io.github.gms.common.abstraction.AbstractAuthService;
Expand All @@ -25,7 +12,23 @@
import jakarta.servlet.http.Cookie;
import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.MDC;
import org.springframework.data.util.Pair;
import org.springframework.http.HttpStatus;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;
import org.springframework.stereotype.Service;
import org.springframework.web.util.WebUtils;

import java.util.Date;
import java.util.stream.Stream;

import static io.github.gms.common.util.Constants.ACCESS_JWT_TOKEN;

/**
* @author Peter Szrnka
* @since 1.0
*/
@Slf4j
@Service
public class AuthorizationServiceImpl extends AbstractAuthService implements AuthorizationService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serial;
import java.util.Collection;
import java.util.Set;
import java.util.stream.Collectors;
Expand All @@ -23,6 +24,7 @@
@NoArgsConstructor
public class GmsUserDetails implements UserDetails {

@Serial
private static final long serialVersionUID = 3437066490159576929L;
private String name;
private String email;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

import lombok.Getter;

/**
* @author Peter Szrnka
* @since 1.0
*/
public enum EnabledAlgorithm {
SHA1WITHRSA("SHA1WITHRSA"),
SHA224WITHRSA("SHA224WITHRSA"),
Expand Down

0 comments on commit f0092d5

Please sign in to comment.