Hi all,
I'm having trouble implementing the sign in with the service provider accounts, in my case it's Twitter account. The problems occurred after submitting from the Twitter sign in form. The callback url is:
It resulted to the 404 code, I'm using twitter account that are already having connection between my application and twitter.Code:http://localhost:8080/myapp/signin/twitter?oauth_token=XYZ&oauth_verifier=XYZ
here are my form that got me to twitter sign in form
Im using spring-security-3.1.0.RC2 and in my security config file:Code:<form id="tw_signin" action="<c:url value='/app/signin/twitter'/>" method="POST"> <input type="submit" value="Use Twitter" /> </form>
And here are my view resolver:Code:<http auto-config="true" access-denied-page="/login.jsp"> <intercept-url pattern="/app/signin/**" access="IS_AUTHENTICATED_ANONYMOUSLY" /> <intercept-url pattern="/index**" access="IS_AUTHENTICATED_ANONYMOUSLY" /> <intercept-url pattern="/login**" access="IS_AUTHENTICATED_ANONYMOUSLY" /> <intercept-url pattern="/app/signup**" access="IS_AUTHENTICATED_ANONYMOUSLY" /> <intercept-url pattern="/app/public/**" access="IS_AUTHENTICATED_ANONYMOUSLY, ROLE_USER" /> <intercept-url pattern="/admin/**" access="ROLE_ADMIN" /> <intercept-url pattern="/**" access="ROLE_USER" /> ...
Thanks,Code:<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="requestContextAttribute" value="rc"/> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/> <property name="prefix" value="/WEB-INF/pages/"/> <property name="suffix" value=".jsp"/> </bean>
Dikie Aditya


Reply With Quote