Quantcast
Channel: SCN : All Content - SAP Enterprise Portal
Viewing all articles
Browse latest Browse all 3876

Custom Login Module is executed even before the Logon Page

$
0
0

Hello everybody,

 

is anyone able to give me some advice on the following topic?

 

-----

What I have:

 

* EP 7.4

 

* a custom login module (MyOwnLoginModule) which is able to check provided user credentials

 

* a custom stack which uses:

1. EvaluateTicketLoginModule

2. MyOwnLoginModule

3. CreateTicketLoginModule

I can see this in NWA at "Authentication & single sign on" as a Policy Configuration of type CUSTOM.

The policy configuration is called "com.company.portal.login"

 

 

* a custom logon page project which shows a re-branded login page. It is a portal component named "com.company.portal.runtime.logon"

 

* a custom authschemes.xml which combines the above:

 

<authscheme name="uidpwdlogon">

<authentication-template> com.company.portal.login </authentication-template>

<priority>20</priority>

<frontendtype>2</frontendtype>

<frontendtarget>com.companx.portal.runtime.logon.certlogon</frontendtarget>

</authscheme>

 

----

What I want to achieve:

 

1. User enters http://host:port/irj

2. My CustomLogonPage is displayed

3. user enters credentials and submits form

4. Login Stack is executed, checks userid and password

5. Success!

 

 

---

What really happens:

 

1. User enters http://host:port/irj

2. Login Stack is executed. The login module doesn't find username and password and quits with "no username provided"

3. My CustomLogonPage is displayed. ERROR MESSAGE: "User authentication failed..."

4. user enters credentials and submits form

5. Login Stack is executed AGAIN, checks userid and password

6. Success!

 

As you can see I am nearly there...

 

Problem is: The login module is executed once even before the logon page has been displayed (step 2.). Obviously it has to fail because no credentials have been provided at that point of time. After that everything is fine.

 

You find the log output of this step 2 attached.

 

Question:

 

What causes this behavior? Why is the login stack executed once before the Login Page is shown? How can i avoid that?


Viewing all articles
Browse latest Browse all 3876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>