Need to open a browser for SSO login in oxygen
Oxygen general issues.
-
- Posts: 9
- Joined: Thu Mar 04, 2021 9:19 am
Need to open a browser for SSO login in oxygen
Post by tarinisunil »
Hi,
We create a plugin which works with oxygen & CMS. We have a specific requirement to open a browser for SSO login for the user to login into a specific CMS for access. Earlier we did this with JavaFX WebView but due to some issues it is not opening in windows correctly. It works fine in Mac. Is it possible to open the default system browser and get the cookies from that in oxygen? or is there an integration available to embed a native browser in Oxygen so that we can ask the user to login and get the cookies from there
Thanks
Regards
Tarini
We create a plugin which works with oxygen & CMS. We have a specific requirement to open a browser for SSO login for the user to login into a specific CMS for access. Earlier we did this with JavaFX WebView but due to some issues it is not opening in windows correctly. It works fine in Mac. Is it possible to open the default system browser and get the cookies from that in oxygen? or is there an integration available to embed a native browser in Oxygen so that we can ask the user to login and get the cookies from there
Thanks
Regards
Tarini
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Need to open a browser for SSO login in oxygen
Post by Gabriel Titerlea »
Hello,
You can also read about GitHub's device flow that describes a similar authentication process. Or you could implement OAuth 2.0 for Native Apps.
Best,
Gabriel
It's not possible. I'll describe how we share the authentication from the browser with Oxygen Editor in our Content Fusion product:Is it possible to open the default system browser and get the cookies from that in oxygen?
Code: Select all
┌────────┐ ┌─────┐ ┌─────────┐
│ │ │ │ │ │
│ Plugin │ │ CMS │ │ Browser │
│ │ │ │ │ │
└───┬────┘ └──┬──┘ └────┬────┘
│ │ │
│ /authorize │ │
├───────────────────────────────────────────►│ │
│ │ │
│ │ │
│ authCode + checkAuthCode │ │
│◄───────────────────────────────────────────┤ │
│ │ │
│ │ │
│ /auth?auth=authCode (*) │
├────────────────────────────────────────────┬───┬─────────────────────────────┬─►├┐
│ │ │ User presses a button to │ ││
│ │ │ grant your plugin access to │ ││
│ /checkAuth?auth=checkAuthCode │ │ his/her account. │ ││
├────────┬───────────────────────────┬──────►├┐ └─────────────────────────────┘ ││
│ │ The CMS keeps the request │ ││ ││
│ │ open until it receives a │ ││ ││
│ │ grant access request from │ ││ ││
│ │ the browser (*) │ ││ ││
│ └───────────────────────────┘ │◄───────────────────────────────────┼┘
│ ││ │
│ ││ │
│ ││ │
│ accessToken ││ │
│◄───────────────────────────────────────────┼┘ │
│ │ │
│ │ │
│ │ │
│ use accessToken to authorize requests │ │
├───────────────────────────────────────────►│ │
│ │ │
You can also read about GitHub's device flow that describes a similar authentication process. Or you could implement OAuth 2.0 for Native Apps.
Best,
Gabriel
-
- Posts: 9
- Joined: Thu Mar 04, 2021 9:19 am
Re: Need to open a browser for SSO login in oxygen
Post by tarinisunil »
Hello ,
I had one more query, is it possible to have a plugin which is a mix of java and javascript? Like the main plugin is maven based but a small part of it is javascript based.
Is there any sample documentation around it
Thanks
Regards
Tarini
I had one more query, is it possible to have a plugin which is a mix of java and javascript? Like the main plugin is maven based but a small part of it is javascript based.
Is there any sample documentation around it
Thanks
Regards
Tarini
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Need to open a browser for SSO login in oxygen
Post by cristi_talau »
Hello,
Yes. A plugin can have both Java and JavaScript extensions [1].
Best,
Cristian
[1] https://www.oxygenxml.com/doc/versions/ ... in-js.html
Yes. A plugin can have both Java and JavaScript extensions [1].
Best,
Cristian
[1] https://www.oxygenxml.com/doc/versions/ ... in-js.html
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service