Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1016

[C-API] Google credentials does not support. both IdToken and AccessCode

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently, the C-API only exposes:

      RLM_API realm_app_credentials_t* realm_app_credentials_new_google(const char* id_token) RLM_API_NOEXCEPT;
      

      But Google and ObjectStore support two different tokens:

      AppCredentials::google(AuthCode(StringData(id_token).data()));
      AppCredentials::google(IdToken(StringData(id_token).data()));
      

      So we need an API that can distinguish between these. Maybe something like

      RLM_API realm_app_credentials_t* realm_app_credentials_new_google_id_token(const char* id_token) RLM_API_NOEXCEPT;
      RLM_API realm_app_credentials_t* realm_app_credentials_new_google_auth_code(const char* auth_code) RLM_API_NOEXCEPT;
      

            Assignee:
            nicola.cabiddu@mongodb.com Nicola Cabiddu
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: