I have developed a Rest API using Jersey for my Java application and also implemented basic authentication. Is it possible to authenticate a user from the database instead of authenticating them through the Web.xml file?
Related
I am trying to integrate Okta over an existing application which is built on Spring Security Rest Api Oauth2. I have integrated okta with spring boot application successfully but stuck with this application (Spring Security Rest Api Oauth2). The spring boot configuration/steps are not working with spring mvc rest api framework.
Configuration which is used in spring boot application was:
Adding client Id and Client Secret in properties file
#EnableOAuth2Ssso annotation
and a little change in the web security configuration file
Can anybody help me in configuring okta with spring mvc Rest api Oauth2 enabld application?
Following are some good reference projects that I also used when integrating OKTA to an existing spring boot application. Hope it helps:
With XML configuration
With java based annotated configuration
what is the best way to apply token authentication for grails rest api?
I found the following plugin
http://grails.org/plugin/spring-security-rest
but the plugin has a problem when a request comes from other domains
we have a web application(Say wA) developed in java and we need to provide SSO login from client web application(Say WB) to WA and the requirement is to do with Okta-(SAML 2.0).
Currently im having the Idp mnetadatak, IDP Single Sign-On URL and Identity Provider Issuer link created from okta
Anybody please help me on this issue , what things to do in my application side to provide SSO login felicity. how to listen SSO request from my APP (WA).
Thanks and regards
In case you would like to add SAML support directly into your application (as opposed to including it for example in reverse proxy such as Apache or IIS), you can use either Spring SAML (with minimal Spring configuration in case you don't use Spring Security already) or OpenAM's Fedlet.
Spring SAML enables applications to act as a SAML 2.0 Service Provider by initializing web single sign-on towards IDP (Okta) and accepting and validating response (SAML 2.0 Assertion) sent back from Okta.
Good approach to implement Spring SAML is to start with the quick start guide which helps you create SAML 2.0 integration with a public SAML 2.0 Identity Provider, then change the IDP to Okta and then integrate the result into your application.
It is also possible to build SAML 2.0 support from scratch (using OpenSAML library), but significant knowledge of the protocol is needed for it to be done securely.
Some application servers also include SAML support (WebLogic, WebSphere, JBoss with its PicketLink library), but such configuration is of course not portable.
I am using spring security plugin in my grails 2.3.1 app,
I want to expose my controller as rest api,
So that mobile apps can access it.. so do i authenticate my users through my grails controller
Basic auth over SSL is common for REST APIs, and the plugin docs show how to configure Basic auth for part of the app, and standard form-based auth for user-accessible parts of the app. There's also a new plugin for REST + Spring Security - see http://grails.org/plugin/spring-security-rest and click through the "Documentation" button to see the docs.
I developed a Rest web service with Play! Framework. I aim to secure access to this WS. I'm discovering OAuth2 and it seems to be a good solution in my case. However, instead of using an external OAuth2 provider, I prefer to manage this part myself. So, I installed the last snapshot of OpenAM (12.0.0), which can do this. I have an instance of Active Directory on which the authentication should be based.
I have access to the documentation but I don't know how proceed. I would like to have some tracks.
Thanks for your help.