Skip to content

Instantly share code, notes, and snippets.

View AmrElsehemy's full-sized avatar
🦉
Collecting Knowledge

Amr Elsehemy AmrElsehemy

🦉
Collecting Knowledge
View GitHub Profile
syntax = "proto3";
option csharp_namespace = "App.Ointment.Generated";
message GetAppointmentBasicInfoRequestEntity{
string appointmentId=1;
}
message GetAppointmentBasicInfoResponseEntity{
string practiceId=1;
@AmrElsehemy
AmrElsehemy / AppAuthExampleViewController.swift
Created July 27, 2019 15:25
Configuring an iOS app to work with Sitecore Identity 9.1 +
//
// AppAuthExampleViewController.swift
//
// Copyright (c) 2017 The AppAuth Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@AmrElsehemy
AmrElsehemy / identityServer.xml
Created July 27, 2019 15:09
NativeClient Sitecore Identity 9.1 registeration
<NativeClient>
<ClientId>AwesomeAppId</ClientId>
<ClientName>Native Client iOS sample</ClientName>
<UpdateAccessTokenClaimsOnRefresh>true</UpdateAccessTokenClaimsOnRefresh>
<AccessTokenType>0</AccessTokenType>
<AllowOfflineAccess>true</AllowOfflineAccess>
<AlwaysIncludeUserClaimsInIdToken>true</AlwaysIncludeUserClaimsInIdToken>
<AccessTokenLifetimeInSeconds>3600</AccessTokenLifetimeInSeconds>
<IdentityTokenLifetimeInSeconds>3600</IdentityTokenLifetimeInSeconds>
<AllowAccessTokensViaBrowser>true</AllowAccessTokensViaBrowser>