Ejemplo n.º 1
0
 public ClientCredentials(string id, string secret)
 {
     if (string.IsNullOrWhiteSpace(id))
     {
         id = IdentityGenerator.Build().ToString();
     }
     if (string.IsNullOrWhiteSpace(secret))
     {
         secret = IdentityGenerator.Build().ToString();
     }
     this.Id     = id;
     this.Secret = secret;
 }
Ejemplo n.º 2
0
        public AppDto GetById(string appId)
        {
            var app = this._documentStore.Find <App>(IdentityGenerator.Build(appId));

            return(app.To <AppDto>());
        }
Ejemplo n.º 3
0
 public ClientCredentials() : this(IdentityGenerator.Build().ToString(), IdentityGenerator.Build().ToString())
 {
 }
Ejemplo n.º 4
0
 public ClientCredentials(string secret) : this(IdentityGenerator.Build().ToString(), secret)
 {
 }
Ejemplo n.º 5
0
 public Permission(string name)
 {
     this.Name = name;
     this.Id   = IdentityGenerator.Build().ToString();
 }