locked
The Base Authorization Exceed the Allowed Maximum RRS feed

  • Question

  •  

    I believe I am close to creating a child application but get the error

    The Base Authorization Exceed the Allowed Maximum

    Is it the Vb code below or the setting in my HealthVault? I have gone around and around

    Thanks,

    Scott

    Dim args As DopuArguments = New DopuArguments() args.Appid = Guid.Parse("9d06d418-c797-42e9-a38a-xxxxxxxxxxxx") 'eznotes args.ServiceUrl = "https://platform.healthvault-ppe.com/platform" Dim owac As OfflineWebApplicationConnection = New OfflineWebApplicationConnection(args.Appid, args.ServiceUrl, Guid.Empty) 'Dim owac As OfflineWebApplicationConnection = New OfflineWebApplicationConnection(args.Appid, args.ServiceUrl + "wildcat.ashx", Guid.Empty) owac.Authenticate() Dim childappid As Guid = Guid.Empty Dim childapp As New ApplicationInfo() '// Get the master application certificate 'Dim master_certname As String = args.Appid Dim master_certname As String = "WildcatApp-9d06d418-c797-42e9-a38a-xxxxxxxxxxxx" 'eznotes 'Dim master_certname As String = "WildcatApp-" & appid Dim store As New X509Store(StoreName.My, StoreLocation.LocalMachine) Dim sp As New StorePermission(PermissionState.Unrestricted) sp.Flags = StorePermissionFlags.OpenStore sp.Assert() Dim cert2 As X509Certificate2 = Nothing store.Open(OpenFlags.MaxAllowed) For Each cert As X509Certificate2 In store.Certificates If cert.SubjectName.Name.Contains(master_certname) Then cert2 = cert Exit For End If Next childapp.PublicKeys.Add(cert2.GetRawCertData()) childapp.Name = "EZNotes Child App1" childapp.AuthorizationReason = "I really, really want it" childapp.Description = "EZNotes Child Application1" childapp.DomainName = "localhost" 'childapp.LargeLogo = New ApplicationBinaryConfiguration("C:\Program Files\Microsoft HealthVault\SDK\DotNet\WebSamples\OfflineAccess\website\UnknownSource.png", "Image") childapp.LargeLogo = New ApplicationBinaryConfiguration("C:\certfiedlogo120-60.jpg", "Image") childapp.PrivacyStatement = New ApplicationBinaryConfiguration(New MemoryStream(UTF8Encoding.[Default].GetBytes("Everything is secret")), "text") childapp.TermsOfUse = New ApplicationBinaryConfiguration(New MemoryStream(UTF8Encoding.[Default].GetBytes("Abuse is strictly prohibited")), "text") childapp.ActionUrl = New Uri("http://localhost/redirect.aspx") childapp.ConfigurationOptions = ApplicationOptions.[Default] Dim authsetDefinition As New List(Of AuthorizationSetDefinition)() authsetDefinition.Add(New TypeIdSetDefinition(Microsoft.Health.ItemTypes.Basic.TypeId)) authsetDefinition.Add(New TypeIdSetDefinition(Microsoft.Health.ItemTypes.ApplicationSpecific.TypeId)) Dim authrule As New Microsoft.Health.AuthorizationRule(HealthRecordItemPermissions.All, authsetDefinition, New List(Of AuthorizationSetDefinition)()) childapp.OfflineBaseAuthorizations.Add(authrule) childapp.ConfigurationOptions = ApplicationOptions.None 'added rule here for error below args.TypeGuid = Guid.Parse("9c48a2b8-952c-4f5a-935d-f3292326bf54") 'CCD type GUID Dim rules As New List(Of AuthorizationSetDefinition) rules.Add(DirectCast(New TypeIdSetDefinition(args.TypeGuid), AuthorizationSetDefinition)) Dim rule1 As New AuthorizationRule(HealthRecordItemPermissions.Read, rules, Nothing) ' Here we are setting up the child as an offline application childapp.OfflineBaseAuthorizations.Add(rule1) 'error here at this time 'The Base Authorization Exceed the Allowed Maximum childappid = Provisioner.AddApplication(owac, childapp) 'webconfiguration is underline don't know what it needs "imports what?? Dim childowac As New OfflineWebApplicationConnection(childappid, WebConfigurationManager.AppSettings("HealthServiceUrl") + "wildcat.ashx", Guid.Empty)


    Friday, September 26, 2014 11:09 PM

Answers

  • Hi Scott,

    Can you send this request to hvtech@microsoft.com along with the application id? I will take a look at your master application configuration.

    -Sean

    Thursday, October 2, 2014 12:03 PM

All replies

  • Anybody any ideas!

    Thanks,

    Scott

    Tuesday, September 30, 2014 11:30 PM
  • Hi Scott,

    Can you send this request to hvtech@microsoft.com along with the application id? I will take a look at your master application configuration.

    -Sean

    Thursday, October 2, 2014 12:03 PM