View application.yml
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
# Spring Boot configuration | |
spring: | |
profiles: | |
active: google | |
# Spring Security configuration | |
security: | |
oauth2: | |
client: | |
clientId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
clientSecret: xxxxxxxxxxxxxxxxxxxxxx |
View hooks.js
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
useEffect(() => { | |
// do side effects | |
return () => /* cleanup */ | |
}, [dependancy array]); | |
useLayoutEffect(() => { | |
// do side effects | |
return () => /* cleanup */ | |
}, [dependancy array]); |
View install_react_localization_redux.txt
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
npm install react-localize-redux --save |
View gist:9cc5c46606c9a497d61058b096326dfe
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
version: "3" | |
services: | |
abc: | |
# replace username/repo:tag with your name and image details | |
image: dockerregistry.xxx.dev/abc:0-SNAPSHOT | |
deploy: | |
replicas: 1 | |
resources: | |
limits: | |
cpus: "0.1" |
View LoginTypeCallback.java
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
package com.weblogic.security; | |
import javax.security.auth.callback.Callback; | |
public class LoginTypeCallback implements Callback { | |
String type; | |
public LoginTypeCallback() { | |
} |
View SampleLoginModule.java
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
package com.weblogic.security; | |
import weblogic.security.principal.WLSGroupImpl; | |
import weblogic.security.principal.WLSUserImpl; | |
import javax.security.auth.Subject; | |
import javax.security.auth.callback.Callback; | |
import javax.security.auth.callback.CallbackHandler; | |
import javax.security.auth.callback.NameCallback; | |
import javax.security.auth.callback.UnsupportedCallbackException; |
View SampleAuthenticationProvider.java
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
package com.weblogic.security; | |
import weblogic.management.security.ProviderMBean; | |
import weblogic.security.provider.PrincipalValidatorImpl; | |
import weblogic.security.spi.AuthenticationProvider; | |
import weblogic.security.spi.IdentityAsserter; | |
import weblogic.security.spi.PrincipalValidator; | |
import weblogic.security.spi.SecurityServices; | |
import javax.security.auth.login.AppConfigurationEntry; |
View CustomAuthentication.xml
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
<?xml version="1.0" ?> | |
<!DOCTYPE MBeanType SYSTEM "commo.dtd"> | |
<MBeanType | |
Name="CustomAuthentication" | |
DisplayName="CustomAuthentication" | |
Package="com.weblogic.security" | |
Extends="weblogic.management.security.authentication.Authenticator" | |
> | |
<!-- |
View pom.xml
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
<profiles> | |
<profile> | |
<id>tools-jar-in-plugin</id> | |
<activation> | |
<os> | |
<family>linux</family> | |
</os> | |
</activation> | |
<build> | |
<plugins> |
View pom.xml
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
<build> | |
<resources> | |
<resource> | |
<filtering>true</filtering> | |
<directory>src/main/resources</directory> | |
</resource> | |
</resources> | |
<plugins> | |
<plugin> | |
<groupId>org.zeroturnaround</groupId> |
NewerOlder