Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
OAuthResourcePolicyAttribute.cs
1using System;
3using System.Threading.Tasks;
4
6{
10 [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
12 {
18 {
19 this.ResourcePolicyUri = ResourcePolicyUri;
20 }
21
25 public string ResourcePolicyUri { get; }
26
32 public override Task AddMetaData(HttpResource Resource,
33 Dictionary<string, object> MetaData)
34 {
35 MetaData["resource_policy_uri"] = this.ResourcePolicyUri;
36 return Task.CompletedTask;
37 }
38 }
39}
Base class for all HTTP resources.
Definition: HttpResource.cs:23
Abstract base class for OAUTH meta-data attributes.
Defines the resource policy URI of an OAUTH web service.
override Task AddMetaData(HttpResource Resource, Dictionary< string, object > MetaData)
Adds available meta-data to a dictionary of meta-data.
OAuthResourcePolicyAttribute(string ResourcePolicyUri)
Defines the resource policy URI of an OAUTH web service.