Skip to content
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

Authentication and authorization #76

Closed
mikehaller opened this issue Feb 19, 2024 · 1 comment · Fixed by #78
Closed

Authentication and authorization #76

mikehaller opened this issue Feb 19, 2024 · 1 comment · Fixed by #78
Assignees
Milestone

Comments

@mikehaller
Copy link

I'd like to authenticate to the Kuksa databroker using tokens.
Is there any documentation or example available?

Reference

wba2hi added a commit to boschglobal/kuksa-android-sdk that referenced this issue Feb 22, 2024
@wba2hi
Copy link
Contributor

wba2hi commented Feb 22, 2024

@mikehaller
Authentication was added with the linked PR.

The JsonWebToken can (optionally) be provided to the DataBrokerConnector of the SDK.

val jsonWebToken = JsonWebToken("someValidJwt") 
val connector = DataBrokerConnector(managedChannel, jsonWebToken)

However, it can also be removed / replaced during an active Connection by simply setting a new one in the DataBrokerConnection:

val newJsonWebToken = JsonWebToken("someValidJwt") 
dataBrokerConnection.jsonWebToken = newJsonWebToken

Samples, documentation etc was adapted

@wba2hi wba2hi self-assigned this Feb 22, 2024
@Chrylo Chrylo added this to the 0.2 milestone Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants