16 lines
583 B
C#
16 lines
583 B
C#
using System;
|
|
using System.ServiceModel;
|
|
using System.ServiceModel.Web;
|
|
using Taloyhtio.GeneralSSO.Server.CodeFiles.Entities;
|
|
|
|
namespace Taloyhtio.GeneralSSO.Server.CodeFiles.Infrastructure.WCF
|
|
{
|
|
// If new methods will be added here, add them also to OAuthAuthorizationManager.getScopeByUrl()
|
|
// for automatic determining scope based on url
|
|
[ServiceContract]
|
|
public interface IDataApi
|
|
{
|
|
[OperationContract, WebGet(/*UriTemplate = "/roles?siteUrl={siteUrl}", */ResponseFormat = WebMessageFormat.Json)]
|
|
UserRoles GetRoles(string siteUrl);
|
|
}
|
|
} |