Comments (3)
Hello,
I don't know about openhab, but I think it will be easier to implement the tokensaver of Apollon77 instead of recompiling or backtranslating the code from perl to java. I also just compare the engine of Apollon77 (https://github.com/Apollon77/daikin-controller-cloud) and Rospogrigio (https://github.com/rospogrigio/daikin_residential/blob/master/custom_components/daikin_residential/daikin_api.py) and translate it to perl. It uses a OPENID-CLIENT connection.
In my module, the authorization process is implemented in the sub "DaikinCloud_BlockAuth" (
Lines 1044 to 1192 in 2658275
The following points are called for:
- Get the authorization-endpoint-url and the token-endpoint-url from the ISSUER-URL
- Call the authorization-endpoint-url and share a client secret -> extract crsf-cookies and forward-url from request
- Call the forward-url -> extract samlContext from request
- Call "https://cdns.gigya.com/js/gigya.js.." -> extract Api-Version from request
- Call "https://cdc.daikin.eu/accounts.webSdkBootstrap.." -> extract single-sign-on-cookies (sso-cookies) from request
- Call "https://cdc.daikin.eu/accounts.login" with sso-cookies, samlContext , username, password -> extract one-time-login-token from request
- Call "https://cdc.daikin.eu/saml/.." with samlContext, sso-cookies & one-time-login-token -> extract SAMLResponse, relayState from request
- Call saml_endpoint_url with SAMLResponse, relayState, crsf-cookies -> extract authorization-code
- Call token-endpoint-url with shared client secret, authorization-code, crsf-cookies -> extract the token-Set
That's it ;-)
Greatings Frank
from daikincloud.
Hello Frank,
Thanks for extensive response. I'm going to test it right now.
Great :)
Alexander
from daikincloud.
Hi Frank,
After two days of searching and trying, I managed to create the process in Java. The help you provided has helped me a lot with this.
Again, thank you very much.
Greatings Alexander
from daikincloud.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daikincloud.