Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-303

ApiKeyAuthProvider API

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sync
    • None

      Similar to Realm Java we should expose the ApiKeyAuth API:

       

      interface io.realm.mongodb.auth.ApiKey {    
        val id: ObjectId    
        val value: String?  
        val name: String  
        val enabled: Boolean
      }
      
      interface io.realm.mongodb.auth.ApiKeyAuth {
        suspend fun create(name: String): ApiKey
        suspend fun delete(id: ObjectId)
        suspend fun disable(id: ObjectId)
        suspend fun enable(id: ObjectId)
        suspend fun fetch(id: ObjectId): ApiKey
        suspend fun fetchAll(): List<ApiKey>
        val user: User
        val app: App
      }
      
      // Available from the App class
      class App {
        var apiKeyAuth: ApiKeyAuth
      }

            Assignee:
            jacob.gunnarsson@mongodb.com Jacob Gunnarsson (Inactive)
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: