-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NAS-129920 / 24.10 / jsonrpc server #13979
Conversation
2772182
to
5364e85
Compare
Are there any developer docs for this? |
The FreeIPA JSON RPC server provides a |
What will this non-standard field be useful for? Clients already know if they tried to authorize and whether they did it successfully. |
7316bab
to
7ba5002
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropping my two cents here. Good work!
self.authenticated_credentials: SessionManagerCredentials | None = None | ||
self.py_exceptions = False | ||
self.websocket = False | ||
self.rest = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If websocket
and rest
are mutually exclusive, only one is necessary. It might be even better to cut both and just use isinstance(app, RpcWebSocketApp)
and isinstance(app, Application)
.
In either case, it would be a good idea to rename Application
to RestApp
or something similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we could have an enum for session type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's like this for backwards compatibility with the existing code. This will be refactored when existing server code goes away.
6c9f2f6
to
51bbe9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to test suite (1 failure that are unrelated to these changes) http://jenkins.eng.ixsystems.net:8080/job/tests/job/api_tests/123/testReport/
JIRA ticket https://ixsystems.atlassian.net/browse/NAS-129920 is targeted to the following versions which have not received their corresponding PRs: 24.10-RC.1, 25.04 |
This PR has been merged and conversations have been locked. |
No description provided.