Custom %CSP.Login for app /csp/sys
Hi guys, I defined a subclass to %CSP.Login and assigned csp/sys login page to this subclass:
But did not work, I get this error:
And more, the default %CSP.Login continues to be called to login when the user not logged yet
So, how can I do to replace the default %CSP.Login by my subclass?
Product version: IRIS 2022.3
Does it work if you call your class with full reference? I mean not for Login?
NOT found is suspicious somehow
The value into Login Page field is right, the problem was CSPSystem permission
Yuri, enable ISCLOG, reproduce the error, disable ISCLOG and then check if it has any errors, e.g. errors.
%SYS>kill ^%ISCLOG, ^ISCLOG
%SYS>set ^%ISCLOG = 3
//reproduce the error
%SYS>set ^%ISCLOG = 0
%SYS>zw ^ISCLOG
Afaik, with custom login pages user CSPSystem needs to have READ permissions on a database where custom login page class is located
Nothing, log empty. Very difficult to set up custom login, I've given up, thanks
Check carefully. Note -- in ^%ISCLOG (with percent) you enable the log. Then you read ^ISCLOG (without percent) in %SYS namespace.
When I repeated steps that I suggested to you, I saw the following error in ^ISCLOG
Then I enabled auditing of Protect events, reproduced the eror and got more details:
Indeed, user CSPSystem does not have READ permission on irissys database, where custom login class is located. Rather I should have created a new role that has only READ permission on %DB_IRISSYS resource, not RW.
I added role %DB_IRISSYS to user CSPSystem, closed connections from Apache to IRIS, so that the role is added on new connection, then login page began to work
Worked! Thanks!
See:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
And...this is the demonstration that the feedback button in the documentation pages really does work!
I admit I ran into this problem sometime ago, after realizing the problem I felt the documentation had to mention that "detail"....so I pressed the feedback button and filed the request/advice.
Now that "detail" is the first step in the recipe of creating a custom login page.
Well done InterSystems Documentation team!
Now we only need to encourage people to actually read the documentation
Or search the community:
https://community.intersystems.com/post/custom-login-page-iris
Enrico
I read this documentation and not detail how to fill the Login Page field
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue