From 0cccc1e7a042201941706951ef62f903a830328f Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 17 May 2017 20:24:25 -0400 Subject: [PATCH] api keys --- Project-Unite/Views/Manage/Index.cshtml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Project-Unite/Views/Manage/Index.cshtml b/Project-Unite/Views/Manage/Index.cshtml index 3cf0b02..8794eb2 100644 --- a/Project-Unite/Views/Manage/Index.cshtml +++ b/Project-Unite/Views/Manage/Index.cshtml @@ -120,6 +120,45 @@ Change password +
+

API

+

The ShiftOS API is a way for desktop and mobile applications to easily access certain data from the ShiftOS community in an easy-to-display way. It is also how ShiftOS is able to connect your save file to your ShiftOS account.

+ +

You can use this screen to manage your API keys. These keys give API-level access to your account. You can revoke them at any time.

+ +
+
+ Danger! +

Revoking an API key generated by ShiftOS will cause you to lose access to any associated save files.

+
+
+ +
+
API key
+
Actions
+
+ @{ + var db = new Project_Unite.Models.ApplicationDbContext(); + var keys = db.OAuthTokens.Where(x=>x.UserId==Model.Id).ToArray(); + } + @foreach(var key in keys) + { +
+
+ @key.AppName @key.Version +

@key.AppDescription

+
+                                
+                                    @key.Id
+                                
+                            
+
+ +
+ } +