(Steps taken from: https://www.baeldung.com/x-509-authentication-in-spring-security)
All passwords: changeit
openssl req -x509 -sha256 -days 3650 -newkey rsa:4096 -keyout rootCA.key -out rootCA.crt
package com.briix.api.admin; | |
import com.briix.model.FixedIncomeBank; | |
import com.briix.model.Media; | |
import com.briix.model.enumeration.BankStatus; | |
import com.briix.model.enumeration.MediaKind; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import io.quarkus.test.junit.QuarkusTest; | |
import io.restassured.http.ContentType; |
package org.keycloak.authentication.authenticators.browser; | |
import org.keycloak.authentication.AuthenticationFlowContext; | |
import org.keycloak.models.RoleModel; | |
import org.keycloak.models.UserModel; | |
import javax.ws.rs.core.MultivaluedMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.regex.Pattern; |
/** | |
* Fancy ID generator that creates 20-character string identifiers with the following properties: | |
* | |
* 1. They're based on timestamp so that they sort *after* any existing ids. | |
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
* latter ones will sort after the former ones. We do this by using the previous random bits | |
* but "incrementing" them by 1 (only in the case of a timestamp collision). | |
*/ |
# Metadata | |
# Created By Eko Sutrisno | |
# Email [email protected] | |
# Kamis, 23 Desember 2021 11:40 AM | |
version: 1 | |
# dn: dc=erajaya,dc=com | |
# dc: erajaya | |
# o: Erajaya Swasembada |
(Steps taken from: https://www.baeldung.com/x-509-authentication-in-spring-security)
All passwords: changeit
openssl req -x509 -sha256 -days 3650 -newkey rsa:4096 -keyout rootCA.key -out rootCA.crt
server: | |
port: 9901 | |
spring: | |
application: | |
name: STUDENT SERVICES | |
datasource: | |
url: jdbc:h2://mem:db;DB_CLOSE_DELAY=-1 | |
username: sa | |
password: sa |
import java.util.Date; | |
/** | |
* @author Eko Sutrisno | |
* Saturday, 20/03/2021 9:31 | |
*/ | |
public class ExceptionHandlingResponse<T> { | |
private int statusCode; | |
private String status; |
const bottom = ref(null) | |
const scrollToBottom = () => { | |
bottom.value.scrollIntoView({behavior: 'smooth'}) | |
} |