protected void btnLoginToORCID_Click(object sender, EventArgs e) { // Have the user log into ORCID and Authenticate. Upon return from ORCID, redirect to ProvideORCIDConfirmation.aspx. // If successful, ProvideORCIDConfirmation.aspx should have a query string parameter named code, that will allow us to get the ORCID ID. Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.REFPermission refPermission = new Profiles.ORCID.Utilities.ProfilesRNSDLL.BLL.ORCID.REFPermission().Get((int)Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.REFPermission.REFPermissions.authenticate); string orcidLoginPath = Profiles.ORCID.Utilities.ProfilesRNSDLL.BLL.ORCID.OAuth.GetUserPermissionURL(refPermission.PermissionScope, "ProvideORCIDConfirmation.aspx"); Response.Redirect(orcidLoginPath, true); }
protected void btnLoginToORCID_Click(object sender, EventArgs e) { // Have the user log into ORCID and Authenticate. Upon return from ORCID, redirect to ProvideORCIDConfirmation.aspx. // If successful, ProvideORCIDConfirmation.aspx should have a query string parameter named code, that will allow us to get the ORCID ID. Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.REFPermission refPermission = new Profiles.ORCID.Utilities.ProfilesRNSDLL.BLL.ORCID.REFPermission().Get((int)Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.REFPermission.REFPermissions.authenticate); string orcidLoginPath = Profiles.ORCID.Utilities.ProfilesRNSDLL.BLL.ORCID.OAuth.GetUserPermissionURL(refPermission.PermissionScope, "ProvideORCIDConfirmation.aspx"); Response.Redirect(orcidLoginPath, true); }