GitHub user dosubot[bot] added a comment to the discussion: How to obtain guest_token for embedded-sdk after integrating Azure OAUTH?
<!-- Answer --> I wasn't able to find the complete implementation of the `create_guest_access_token` method in the Superset codebase. However, I can provide some information about its usage and the parameters it requires. The `create_guest_access_token` method requires the following parameters: `user`, `resources`, and `rls`. These parameters are defined in the `GuestTokenCreateSchema` class, which specifies that `user` is a nested object of `UserSchema`, `resources` is a list of `ResourceSchema` objects, and `rls` is a list of `RlsRuleSchema` objects. The `resources` and `rls` fields are marked as required in the schema <sup>[[1]](https://github.com/apache/superset/blob/master/tests/integration_tests/security_tests.py)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset/security/api.py)</sup>. The method is used to generate a guest access token for a user, which includes claims such as `"user"`, `"resources"`, `"rls_rules"`, `"type"`, `"iat"`, `"aud"`, and `"exp"`. These claims are validated to ensure the token is correctly structured <sup>[[3]](https://github.com/apache/superset/blob/master/superset/security/manager.py)</sup><sup>[[4]](https://github.com/apache/superset/blob/master/superset/security/guest_token.py)</sup>. If you need further details or specific code snippets, you might want to explore the Superset codebase, particularly the `superset/security/manager.py` file, for more context on how this method is implemented and used. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/204d0956-6425-4a29-9970-83ee7c1a4ed8?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/204d0956-6425-4a29-9970-83ee7c1a4ed8?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/204d0956-6425-4a29-9970-83ee7c1a4ed8?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/204d0956-6425-4a29-9970-83ee7c1a4ed8?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/204d0956-6425-4a29-9970-83ee7c1a4ed8?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/204d0956-6425-4a29-9970-83ee7c1a4ed8?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/204d0956-6425-4a29-9970-83ee7c1a4ed8?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/33052#discussioncomment-12777131 ---- This is an automatically sent email for notifications@superset.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@superset.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org