Initial Commit ...
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace xIdentityService.Constants {
|
||||
public partial struct ConfigurationNodeNames {
|
||||
public const string XPROXY_CONFIGURATION_NODE_NAME = "ProxyConfiguration";
|
||||
public const string IDENTITY_SERVICE_NODE_NAME = "IdentityServiceConfiguration";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
using xExceptions.Attributes;
|
||||
|
||||
namespace xIdentityService.Constants {
|
||||
public enum XApiAccountEndpoint {
|
||||
//
|
||||
#region Authentication ...
|
||||
[StringValue ("Account/DiscoveryDocument")]
|
||||
DiscoveryDocument,
|
||||
|
||||
[StringValue ("Account/RequestScopeAccessToken")]
|
||||
RequestScopeAccessToken,
|
||||
|
||||
[StringValue ("Account/Authenticate")]
|
||||
Authenticate,
|
||||
|
||||
[StringValue ("Account/Login")]
|
||||
Login,
|
||||
|
||||
[StringValue ("Account/RefreshTokens")]
|
||||
RefreshTokens,
|
||||
|
||||
[StringValue ("Account/ChangePassword")]
|
||||
ChangePassword,
|
||||
|
||||
[StringValue ("Account/ResetPassword")]
|
||||
ResetPassword,
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Proile ...
|
||||
[StringValue ("Account/Profile/{ids}/GetNames")]
|
||||
GetNames,
|
||||
|
||||
[StringValue ("Account/Profile/GetNameIds")]
|
||||
GetNameIds,
|
||||
|
||||
[StringValue ("Account/Profile/{userSelectByParam}")]
|
||||
GetProfile,
|
||||
|
||||
[StringValue ("Account/Profile/Query")]
|
||||
QueryProfiles,
|
||||
|
||||
[StringValue ("Account/Profile/Avatars/Query/{userSelectByParam}")]
|
||||
QueryAvatars,
|
||||
|
||||
[StringValue ("Account/Profile/Update/{userSelectByParam}")]
|
||||
UpdateProfile,
|
||||
|
||||
[StringValue ("Account/Profile/{userSelectByParam}")]
|
||||
FullUpdateProfile,
|
||||
|
||||
[StringValue ("Account/Profile/Avatar")]
|
||||
AddAvatar,
|
||||
|
||||
[StringValue ("Account/Profile/Avatars")]
|
||||
AddAvatars,
|
||||
|
||||
[StringValue ("Account/Profile/Avatars/{ids}")]
|
||||
RemoveAvatars,
|
||||
|
||||
[StringValue ("Account/Profile/Avatars/{id}/Set")]
|
||||
SetAvatar,
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Registration ...
|
||||
[StringValue ("Account/CanRegisterUserName/{userName}")]
|
||||
CanRegisterUserName,
|
||||
|
||||
[StringValue ("Account/CanRegisterMobileNumber/{mobileNumber}")]
|
||||
CanRegisterMobileNumber,
|
||||
|
||||
[StringValue ("Account/CanRegisterEmail/{email}")]
|
||||
CanRegisterEmail,
|
||||
|
||||
[StringValue ("Account/IsConfirmedEmail")]
|
||||
IsConfirmedEmail,
|
||||
|
||||
[StringValue ("Account/IsConfirmedMobile")]
|
||||
IsConfirmedMobile,
|
||||
|
||||
[StringValue ("Account/ConfirmRegistration")]
|
||||
ConfirmRegistration,
|
||||
|
||||
[StringValue ("Account/ConfirmMobileNumber")]
|
||||
ConfirmMobileNumber,
|
||||
|
||||
[StringValue ("Account/ConfirmEmailAddress")]
|
||||
ConfirmEmailAddress,
|
||||
|
||||
[StringValue ("Account/RequestConfirmMobile")]
|
||||
RequestConfirmMobile,
|
||||
|
||||
[StringValue ("Account/RequestConfirmEmail")]
|
||||
RequestConfirmEmail,
|
||||
|
||||
[StringValue ("Account/RequestResetPassword")]
|
||||
RequestResetPassword,
|
||||
|
||||
[StringValue ("Account/RequestConfirmRegistration")]
|
||||
RequestConfirmRegistration,
|
||||
|
||||
[StringValue ("Account/InviteUser")]
|
||||
InviteUser,
|
||||
|
||||
[StringValue ("Account/RequestRegistration")]
|
||||
RequestRegistration,
|
||||
|
||||
[StringValue ("Account/AddAccountInfo")]
|
||||
AddAccountInfo,
|
||||
|
||||
[StringValue ("Account/AttachProfileImage")]
|
||||
AttachProfileImage,
|
||||
|
||||
[StringValue ("Account/FinishRegistration")]
|
||||
FinishRegistration,
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Friendship ...
|
||||
[StringValue ("Account/Friendship/{destUser}/Follow")]
|
||||
Follow,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/Cancel")]
|
||||
Cancel,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/UnFollowFollower")]
|
||||
UnFollowFollower,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/UnFollowFollowing")]
|
||||
UnFollowFollowing,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/Block")]
|
||||
Block,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/UnBlock")]
|
||||
UnBlock,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/AcceptRequest")]
|
||||
AcceptRequest,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/RejectRequest")]
|
||||
RejectRequest,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/IsFollower")]
|
||||
IsFollower,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/FollowerState")]
|
||||
FollowerState,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/Follower")]
|
||||
Follower,
|
||||
|
||||
[StringValue ("Account/Friendship/Followers")]
|
||||
Followers,
|
||||
|
||||
[StringValue ("Account/Friendship/AllFollowers")]
|
||||
AllFollowers,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/IsFollowing")]
|
||||
IsFollowing,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/FollowingState")]
|
||||
FollowingState,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/Following")]
|
||||
Following,
|
||||
|
||||
[StringValue ("Account/Friendship/Followings")]
|
||||
Followings,
|
||||
|
||||
[StringValue ("Account/Friendship/AllFollowings")]
|
||||
AllFollowings,
|
||||
|
||||
[StringValue ("Account/Friendship/FollowingsList")]
|
||||
FollowingsList,
|
||||
|
||||
[StringValue ("Account/Friendship/FollowersList")]
|
||||
FollowersList,
|
||||
|
||||
[StringValue ("Account/Friendship/{destUser}/FriendshipInfo")]
|
||||
FriendshipInfo,
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Admin ...
|
||||
[StringValue ("Account/Ban")]
|
||||
Ban,
|
||||
|
||||
[StringValue ("Account/UnBan")]
|
||||
UnBan,
|
||||
|
||||
[StringValue ("Account/IsBanned/{userSelectByParam}")]
|
||||
IsBanned,
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using xExceptions.Attributes;
|
||||
|
||||
namespace xIdentityService.Constants {
|
||||
public enum XAuthenticationScheme {
|
||||
[StringValue ("token")]
|
||||
XToken, [StringValue ("introspection")]
|
||||
XIntrospection,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using xExceptions.Attributes;
|
||||
|
||||
namespace xIdentityService.Constants {
|
||||
public enum XParam {
|
||||
[StringValue ("Content-Type")]
|
||||
XContentType,
|
||||
|
||||
[StringValue ("{boundary}")]
|
||||
XBoundary,
|
||||
|
||||
[StringValue ("{userSelectByParam}")]
|
||||
XUserSelectByParam,
|
||||
|
||||
[StringValue ("{destUser}")]
|
||||
XDestUser,
|
||||
|
||||
[StringValue ("{id}")]
|
||||
XId,
|
||||
|
||||
[StringValue ("{ids}")]
|
||||
XIds,
|
||||
|
||||
[StringValue ("Origin")]
|
||||
XOrigin,
|
||||
|
||||
[StringValue ("{userName}")]
|
||||
XUserName,
|
||||
|
||||
[StringValue ("{mobileNumber}")]
|
||||
XMobileNumber,
|
||||
|
||||
[StringValue ("{email}")]
|
||||
XEmail,
|
||||
|
||||
[StringValue ("role")]
|
||||
XRole,
|
||||
|
||||
[StringValue ("forceRole")]
|
||||
XForceRole,
|
||||
|
||||
[StringValue ("IsRefreshed")]
|
||||
XIsRefreshed,
|
||||
|
||||
[StringValue ("file")]
|
||||
XFile,
|
||||
|
||||
[StringValue ("files")]
|
||||
XFiles,
|
||||
|
||||
[StringValue ("actionToken")]
|
||||
XActionToken,
|
||||
|
||||
[StringValue ("scope")]
|
||||
XScope,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace xIdentityService.Constants {
|
||||
public struct XProxyConstants {
|
||||
public const string XPROXY_HTTP_CLIENT = "XProxyHttpClient";
|
||||
public const string XPROXY_FORWARD_HEADER = "xForwardHeader";
|
||||
public const string XPROXY_ACCEPTED_HEADERS = "xAcceptedHeaders";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace xIdentityService.Constants {
|
||||
public struct XResponseContentTypes {
|
||||
public const string HTML = "text/html";
|
||||
public const string JSON = "application/json";
|
||||
public const string JavaScript = "text/javascript";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace xIdentityService.Constants {
|
||||
public enum XTokenType {
|
||||
//
|
||||
// Summary:
|
||||
// Self-contained Json Web Token
|
||||
Jwt,
|
||||
//
|
||||
// Summary:
|
||||
// Reference token
|
||||
Reference
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user