• effgee

    (@andreastyrosvoutis)


    
    
    I just managed to get this plugin working today, and though I would share how I did it.
    The old included instructions still work for the most part, but the way has changed a bit.
    
    - First, the https://account.live.com/developers/applications/ website for adding the application is now changed to the Azure applications portal. It should automatically redirect you.
    
    - Login with the account that has the onenote books you want to use.
    - NOTE* This plugin only works with the onedrive hosted notebooks.
    
    - Go to App Registrations, New Registration
    - Name the app whatever you want, like said in the previous instructions. "ex: MyWebsiteOneNoteConnection"
    
    - Who can use this application or access this API?
    I dont know if this works with organizational accounts, and my guess is most people will need "Personal Microsoft Account" This is what worked for me. If you MS account is organizational you are on your own.
    
    - Redirect URI (optional)
    As said in the original instructions, https://yourwebsitename.com/wp-admin/ 
    I believe it is necessary to have https (ssl) enabled on your site. If you don't, you should.
    
    - Click register.
    
    ## Setting Permissions ##
    
    - Goto API permissions
    - Select Microsoft Graph, then in the search field type Notes
    - Enable Notes.Read permission (Enables reading content from YOUR notes)
    - Enable Notes.Read.All permission.(Enables reading content from ANY notes shared with you that you have permission to read.)
    - Click Add Permissions to save.
    
    ## Getting your MSA Client Secret ##
    - Next go to Certificates & Secrets
    - Click +New Client Secret, give it any description you want.
    - Also, set no expiration unless you want to do this again later.
    - Click Add.
    - You are now presented with a generated client secret
    - The secret will only be displayed fully ONE TIME, afterward it is obfuscated and you will need to generate it again. 
    - Suggest to copy it somewhere safe, and/or paste it directly into the WP Onenote settings in the MSA Client Secret (WP-Admin-> Settings->Onenote->MSA Client Secret)
    - Client Secret = MSA Client Secret (from old instructions)
    
    ## Getting your MSA ClientID ##
    - Go to overview
    - At the top of the screen with info about your app below the "Display name"
    - MSA ClientID = Application (client) ID 
    - It will look somethis like this: 300b094b-5322-4569-a69-4ae4b63798026
    - Copy paste it directly into the WP Onenote settings in the MSA ClientID (WP-Admin-> Settings->Onenote->MSA ClientID)
    
    And that is it, next time you write a blogpost, press the Onenote button, it will ask you to verify the application access and then you should be able to insert your notes.
    
    

    I just managed to get this plugin working today, and though I would share how I did it.
    The old included instructions still work for the most part, but the way has changed a bit.

    – First, the https://account.live.com/developers/applications/ website for adding the application is now changed to the Azure applications portal. It should automatically redirect you.

    – Login with the account that has the onenote books you want to use.
    – NOTE* This plugin only works with the onedrive hosted notebooks.

    – Go to App Registrations, New Registration
    – Name the app whatever you want, like said in the previous instructions. “ex: MyWebsiteOneNoteConnection”

    – Who can use this application or access this API?
    I dont know if this works with organizational accounts, and my guess is most people will need “Personal Microsoft Account” This is what worked for me. If you MS account is organizational you are on your own.

    – Redirect URI (optional)
    As said in the original instructions, https://yourwebsitename.com/wp-admin/
    I believe it is necessary to have https (ssl) enabled on your site. If you don’t, you should.

    – Click register.

    ## Setting Permissions ##

    – Goto API permissions
    – Select Microsoft Graph, then in the search field type Notes
    – Enable Notes.Read permission (Enables reading content from YOUR notes)
    – Enable Notes.Read.All permission.(Enables reading content from ANY notes shared with you that you have permission to read.)
    – Click Add Permissions to save.

    ## Getting your MSA Client Secret ##
    – Next go to Certificates & Secrets
    – Click +New Client Secret, give it any description you want.
    – Also, set no expiration unless you want to do this again later.
    – Click Add.
    – You are now presented with a generated client secret
    – The secret will only be displayed fully ONE TIME, afterward it is obfuscated and you will need to generate it again.
    – Suggest to copy it somewhere safe, and/or paste it directly into the WP Onenote settings in the MSA Client Secret (WP-Admin-> Settings->Onenote->MSA Client Secret)
    – Client Secret = MSA Client Secret (from old instructions)

    ## Getting your MSA ClientID ##
    – Go to overview
    – At the top of the screen with info about your app below the “Display name”
    – MSA ClientID = Application (client) ID
    – It will look somethis like this: 300b094b-5322-4569-a69-4ae4b63798026
    – Copy paste it directly into the WP Onenote settings in the MSA ClientID (WP-Admin-> Settings->Onenote->MSA ClientID)

    And that is it, next time you write a blogpost, press the Onenote button, it will ask you to verify the application access and then you should be able to insert your notes.

    I can’t guarantee anything other than basic functionality and connectivity is working with these instructions, so enjoy and good luck!

    • This topic was modified 4 years, 5 months ago by effgee.
    • This topic was modified 4 years, 5 months ago by effgee.
  • The topic ‘June 2020 – Here are updated instructions to help you. Enjoy!’ is closed to new replies.