Michael,
What you could try is in the OAuthCallBack class after the resolveUser part, make sure that an anonymous session is created via the loginhelper class and redirect to the index3 page. Then create a registration form that has anonymous access to fill out the registration via the home page options. From the registration page create the user and via a the urlredirection widget from the app store redirect to the index page allowing the user to login, or send a mail with a link to the app, depending on what you think is the best user experience.
Hope this helps you in the right direction.
Hi Erwin,
Thank you for the advice and the direction. I'm definitely not a java developer but I'm learning. I have been working on different pieces of the app and I have recently got back to the section and implemented what you described above. Here is the code I implemented in the LoginHelper function. However, I still came across an issue when it took me to the page I want. It takes me to a desktop from page and not my mobile form page of my registration form. Do I need to sent a call or something to take me or check for the profile of a phone form? I am using deeplink to take me to my mircoflow that will direct me to my form I need.
if(session.getUser().isAnonymous() != null)
{
Boolean AnonFlag = session.getUser().isAnonymous();
if(AnonFlag.booleanValue() == true)
{
indexpage = "../link/registration";
redirect(response, indexpage);
}
}
else
{
redirect(response, indexpage);
}