#### [Abblix\.Oidc\.Server](https://www.abblix.com/en/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.ScopeManagement](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ScopeManagement 'Abblix\.Oidc\.Server\.Features\.ScopeManagement')

## IScopeManager Interface

Registry of OAuth 2\.0 scope definitions known to the authorization server \(RFC 6749 §3\.3\),
including the OIDC standard scopes \(`openid`, `profile`, `email`, `address`,
`phone`, `offline_access`; OIDC Core §5\.4\) and any host\-defined custom scopes\.
Implements [System\.Collections\.Generic\.IEnumerable&lt;&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1 'System\.Collections\.Generic\.IEnumerable\`1') so callers may iterate the full registered set\.

```csharp
public interface IScopeManager : System.Collections.Generic.IEnumerable<Abblix.Oidc.Server.Common.Constants.ScopeDefinition>, System.Collections.IEnumerable
```

Derived  
↳ [ScopeManager](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ScopeManagement.ScopeManager 'Abblix\.Oidc\.Server\.Features\.ScopeManagement\.ScopeManager')

Implements [System\.Collections\.Generic\.IEnumerable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1 'System\.Collections\.Generic\.IEnumerable\`1')[ScopeDefinition](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ScopeDefinition 'Abblix\.Oidc\.Server\.Common\.Constants\.ScopeDefinition')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1 'System\.Collections\.Generic\.IEnumerable\`1'), [System\.Collections\.IEnumerable](https://learn.microsoft.com/en-us/dotnet/api/system.collections.ienumerable 'System\.Collections\.IEnumerable')
### Methods

## IScopeManager\.TryGet\(string, ScopeDefinition\) Method {#Abblix.Oidc.Server.Features.ScopeManagement.IScopeManager.TryGet(string,Abblix.Oidc.Server.Common.Constants.ScopeDefinition)}

Attempts to retrieve the definition of a specified scope\.

```csharp
bool TryGet(string scope, out Abblix.Oidc.Server.Common.Constants.ScopeDefinition definition);
```
#### Parameters

###### `scope` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.ScopeManagement.IScopeManager.TryGet(string,Abblix.Oidc.Server.Common.Constants.ScopeDefinition).scope}

The scope identifier to retrieve the definition for\.

###### `definition` [ScopeDefinition](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ScopeDefinition 'Abblix\.Oidc\.Server\.Common\.Constants\.ScopeDefinition') {#Abblix.Oidc.Server.Features.ScopeManagement.IScopeManager.TryGet(string,Abblix.Oidc.Server.Common.Constants.ScopeDefinition).definition}

Outputs the [ScopeDefinition](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ScopeDefinition 'Abblix\.Oidc\.Server\.Common\.Constants\.ScopeDefinition') if the scope exists, otherwise null\.

#### Returns
[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')  
True if the scope exists and the definition is retrieved, false otherwise\.
