All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datahub.authorization.AuthorizationRequest Maven / Gradle / Ivy

Go to download

DataHub Auth API for developers to write custom Authentication & Authorization plugins for DataHub

There is a newer version: 0.14.1-12rc1
Show newest version
package com.datahub.authorization;

import java.util.Optional;
import lombok.Value;

/** A request to authorize a user for a specific privilege. */
@Value
public class AuthorizationRequest {
  /** The urn of the actor (corpuser) making the request. */
  String actorUrn;

  /** The privilege that the user is requesting */
  String privilege;

  /**
   * The resource that the user is requesting for, if applicable. If the privilege is a platform
   * privilege this optional will be empty.
   */
  Optional resourceSpec;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy