I have spa working. I can test using the static/auth/login.html.
I am having trouble figuring out how to log in from a mobile project if I have a log in page that I want to authenticate with.
If I set it to use appSecurity-form-oerealm.xml in the web.xml file, I get the static/auth/login.html file and log in fine, but don't know how to load the catalogs or use the session. Also, I don't know how to point it to my login page instead.
I would like to have it use my login page and load the catalogs and have all requests after in other services to work.
It looks like they are separate processes, but I don't want them to have to log in twice.
I'm obviously confused.
How did you create your mobile project? Is it a Rollbase project, a Mobile project you created with Progress Developer Studio, or a project that you have created in some other way?
Yes, I should have given more information:
It is an OpenEdge Mobile project using the AppDesigner.
I've implemented the HybridRealm.cls and set up using appSecurity-form-oerealm.xml and can log in through the spring security check (static/auth/login.html).
I would like it so that my app would have a login page of it's own, not pointing to that aforementioned form.
I added a session service and was going to use this, but it automatically goes to the form mentioned above, which makes sense because that is where the appSecurity-form-oerealm.xml points it to.
How do I set it up so that it will use the login page that I have created in the mobile app?
Do I set the session settings authenticationModel to Form as well or leave this as Anonymous?
Am I missing sending the Client-Principal back and forth somehow?
All of the documentation that I've found talks about how to implement SPA and test using the given form, but doesn't help me implement in an OpenEdge Moblie using AppDesigner project.
You do need to set the Session Settings authenticationModel to Form. Or if you use the progress.data.Session object directly, you need to be sure to set its authenticationModel property to form :
mySession.authenticationModel = progress.data.Session.AUTH_TYPE_FORM;
If you have a login page in your client app and are using Session Services, you would need to map the user name and password from the login page to the input parameters of the Session Login service. If you use the progress.data.Session object directly, you would need to grab the user name and password values from the login screen and pass them to the session object's login() function.
I could take a quick look at your app if you want to send me a backup.
Sure, can I email it directly to you?
Sure, that would be fine.