The-OAG-Development-Project / Application-Gateway

OWASP Application Gateway is an HTTP proxy that handles Oauth2 authentication and session management
https://owasp.org/www-project-application-gateway/
Apache License 2.0
83 stars 4 forks source link

V0.4 improvements #77

Closed gianlucafrei closed 3 years ago

gianlucafrei commented 3 years ago

Hi there, I implemented some minor improvements:

gianlucafrei commented 3 years ago

Implemented @EnableOWASPApplicationGateway annotation for simple extension. OAG can now also be used as a Spring Library instead of running the out-of-the-box library:

@EnableOWASPApplicationGateway
@SpringBootApplication
public class OagExtensionDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(OagExtensionDemoApplication.class, args);
    }
}

Additional classes like beans and so on can then be easily added:

@Component("stub-driver-factory")
public class StubLoginDriverFactory implements LoginDriverFactory<StubLoginDriver> {

    @Override
    public StubLoginDriver load(LoginProviderSettings settings) {

        return new StubLoginDriver();
    }
}