This guide explains the authorization code flow in Python: the four roles, the redirect, the code-for-token exchange, state, PKCE, refresh tokens, and the errors you are most likely to hit. The problem OAuth solves Without OAuth, the naive solution is to give an app your Spotify email and password. That gives the app everything your account can do, and those credentials leak if the app is breached. OAuth replaces password sharing with scoped, revocable tokens.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Simon O'Connor
When foreign governments sanction MPs, New Zealand must do more than ‘express concern’
Foreign MInister Winston Peters should be joining with the Prime Minister in leading a tough response to China’s interference in our MPs’ activities, writes Louisa Wall and Simon O’Connor.Jonathan Killick / The Post Louisa Wall and Simon O'Connor are former members of parliament, and alumni members on the Inter-Parliamentary Alliance on China (IPAC).
Build a Spotify Music Time Machine with Python and OAuth 2.0
What were you listening to this week last year? What about three years ago? If you're like most people, you have no idea. Those songs are gone -- not from Spotify's servers, but from your memory. The playlists you obsessed over in 2022 sit forgotten while your current favorites dominate your queue. Spotify gives you short-term recaps and recommendations, but it's surprisingly hard to revisit the music that defined earlier chapters of your life.
Green finance was supposed to contribute solutions to climate change. So far, it’s fallen well short
A decade ago, a seminal speech by Mark Carney, then governor of the Bank of England and current Canadian prime minister, set out how climate change presented an economic risk that threatened the very stability of the financial system. The speech argued the finance sector must deeply embed climate risk into the architecture of the industry or risk massive damages.
Family Matters: Simon O'Connor talks to Roger Partridge about who makes the law in NZ
Reports & Media > Media > Family Matters: Simon O'Connor talks to Roger Partridge about who makes the law in NZ Family Matters: Simon O'Connor talks to Roger Partridge about who makes the law in NZ Simon O'Connor talks to Roger Partridge on Family Matters about his latest research report 'Who makes the law? Reining in the Supreme Court'. Watch below.
Yes, nature is complex-but saving our precious environment means finding ways to measure it
Continue reading More for You
Yes, nature is complex-but saving our precious environment means finding ways to measure it
Nature loss directly threatens half the global economy. The rapid destruction of biodiversity should alarm the many Australian businesses dependent on nature, such as those in agriculture, tourism, construction and food manufacturing. Yet nature considerations are often ignored in business decision-making.
Yes, nature is complex. But saving our precious environment means finding ways to measure it
Nature loss directly threatens half the global economy. The rapid destruction of biodiversity should alarm the many Australian businesses dependent on nature, such as those in agriculture, tourism, construction and food manufacturing. Yet nature considerations are often ignored in business decision-making.
When silence fails
It is difficult to describe the experience of knowing you have been targeted by hackers from a foreign power. There is a novelty, but it is mostly disconcerting and unsettling. In early 2021, agents of the Chinese Communist Party (CCP) initiated a cyber-attack on Members of Parliament who were also members of the Inter-Parliamentary Alliance on China (IPAC). This attack was global and included two of us in New Zealand.
Bernard’s six-stack of substacks at 7:06pm
Here’s my pick of today’s substack posts as of 7:06pm on Tuesday, March 26: writes on his substack about the exposure of China’s hack of Parliament’s systems on in this piece titled: What was suspected, is now exposed asks: Is Hipkins to be trusted with tax reform? Via his substack. asks Hey Minister, a ‘penny’ for your thoughts via her substack about Penny Simmonds’ previous advocacy for carers for the disabled.
Tamaki Newsletter– October 2023
As this latest newsletter reaches your inbox, we have only four days left to Election Day! If you haven’t voted yet, now is the time – or of course, for the more traditional, there is Saturday itself. Rachel and I voted on the first day – a break from our usual habit, but we were keen to Two Ticks Blue as soon as we could. Voting is easy, and you can find a list of places here. YOU DON'T NEED YOUR VOTING CARD TO VOTE A number of locals have been telling me that their voting packs have not arrived.
Tamaki Newsletter– August 2023
Welcome to this special edition of my newsletter. It has been only a few days since my last one, but already there is a large amount of significant news to share with you - mostly around parliament, but also local news here in Tamaki. By now, you will all hopefully know about the government forcing through its changed to Three Waters and to the RMA. Last week, Labour moved the parliament into Urgency to ram through is very contentious Three Waters legislation.
Tamaki Newsletter– August 2023
It has been another intensely busy week, and I write this latest newsletter on a flight back to Parliament. I have just been with Nicola Willis MP, our finance spokesperson, at a business breakfast. Many Tamaki business owners were there at an event organised by BDO. While important to share National’s views, it was mostly a time to hear what business owners have to say and what they want to see happen in the future.
Tamaki Newsletter– July 2023
It would be fair to say, the last few weeks have been full on - with no shortage of campaigning activity across the electorate, alongside my usual constituent work, and of course time in Parliament. As a consequence, I have been a bit behind writing this latest newsletter as I prioritised all the requests of locals to visit and chat. Having finally sat down to write, I am happy to say that this latest newsletter is jam-packed with information of what is happening locally but also nationally.
Public Meeting on Foreign Affairs & Defence
Public Meeting on Foreign Affairs & Defence Simon O'Connor July 17, 2023 Join me and Tim van de Molen MP for a public meeting on Defence and Foreign Affairs When August 10, 2023 at 7:00pm - 9pm Contact Simon O'Connor ·
RIAA CEO Simon O'Connor to exit after 10 years
After serving as chief executive of the Responsible Investment Association Australasia (RIAA) for more than 10 years, Simon O'Connor is leaving the professional network at the end of this year. O'Connor took the position in February 2013, leaving environmental non-profit the Australian Conservation Foundation and public interest economic consultancy Economists at Large. O'Connor cited personal reasons for his departure from RIAA.
Tamaki Newsletter– June 2023
A BIG WIN FOR TAMAKI! Great news to begin this latest update. I have been lobbying hard on your behalf to have a change of direction from National around the housing intensification rules, and a few days ago, we have seen the Party withdraw its support of the medium density (MDRS) rules. As you know, this could mean a three story home could be built right by your boundary without any consent or consultation required.
Ofsted reform: 5 ideas from Dubai
Following the death of Ruth Perry the workings of Ofsted have attracted increased focus - and criticism. One outcome of this is the announcement of an independent review of Ofsted led by Lord Jim Knight, titled Beyond Ofsted, that will look at what the inspectorate currently does, the concerns of the teaching unions and many recommendations being made. I hope the review board takes the opportunity to review inspection systems from elsewhere in the world and what they could learn from them.
Gender inequality: A systemic risk to the Australian economy Original
Selecting a card or ordering flowers for Mother’s Day is an opportunity to express gratitude and appreciation for the significant role mothers play in our lives. It is also essential to recognise and acknowledge women’s contribution to society and take steps to ensure they receive the recognition and support they deserve. Yet, despite years of progress, women in Australia continue to face significant challenges in achieving equal economic participation.
ACSI2023: Jones announces sovereign green bond fund
Australia will launch a benchmark sovereign green bond in the middle of 2024 to fund public projects as part of the government’s drive to attract investor capital to fund the country’s net-zero energy transition. Minister of Financial Services Stephen Jones made this announcement in the opening session at the annual ACSI conference in Sydney on Wednesday.
Exploring the unknown in ESG investment
Donald Rumsfeld, a former U.S. Secretary of Defense, famously pointed out the difficulty of making good decisions in complex circumstances, referring to the “known unknowns” and “unknown unknowns” in the Bush Administration’s invasion of Iraq on March 20, 1993.
2023 ACSI conference: The conscience of investing - Investment Magazine
The US$250 trillion ($370 trillion) energy transition to decarbonise the global economy is throwing up untold investment opportunities, yet the management of the human toll from this momentous shift is only slowly gaining political and investor attention. Attendees at this year’s annual ACSI conference will hear from experts on the crucial importance of managing communities affected by the decarbonisation of the global economy.
What is the purpose of super?
Compulsory superannuation in Australia was introduced over 30 years ago and has been a true success story. However, the absence of an objective for the system has brought challenges – especially given it was initially developed in an era when the Australian superannuation industry was very different from what it is today.
Loan report: Orient within touching distance of promotion
Ed Turns moved one step closer to a career first promotion on Saturday as Leyton Orient won 2-0 at Sutton United in League Two. The victory moved the O’s ten points clear of second place Northampton, for whom Marc Leonard could only help draw 0-0 with another promotion rival Carlisle. Fighting to retain their League One status, Morecambe secured a vital 1-0 win over Wycombe thanks to Cole Stockton’s 89th minute winner.
Aware, HESTA, CEFC pile into Palisade’s new renewables platform
Aware Super, HESTA and the Clean Energy Finance Corp have piled into a new renewables investment platform led by fund manager Palisade Investment Partners as part of the mobilisation of investor capital to fund the US$250 trillion ($374 trillion) energy transition to net zero carbon.
Tamaki Newsletter– March 2023
It has been another busy few weeks politically, and hopefully by now you have seen the latest policy announcements by National. These were around tax rebates for child care, known as FamilyBoost, and a commitment to reduce the number of consultants that government uses. More on these later. However, it hasn’t been politics that has been the major news of recent weeks – it has been the terrible weather events here in New Zealand, and particularly in the North Island.
Tamaki Newsletter– January 2022
Happy New Year and welcome to election year! This first newsletter of the year is coming a bit late, but each time I have completed a draft, there has been a significant event - most lately, the terrible storms here in Auckland and across other regions of the North Island. This newsletter covers a lot including the resignation of the Prime Minister, but firstly, some reflections on the flooding and storms.
Turns scores as Orient extend lead at the top
Interviews Defender on loan with League Two leaders. By Charlie Hanson • 08 February 2023 / 2hrs Ago Renew Now Ed Turns notched his first goal for Leyton Orient on Tuesday as they went seven points clear at the top of League Two with a win over Crewe Alexandra. The 20-year-old joined the O’s on loan in January and has played the full 90 minutes in four of the five games he has been available, keeping three clean sheets.
Market volatility, inflation knock Future Fund’s returns in 2022
The $196 billion Future Fund posted a 3.7 per cent loss in 2022 as rising inflation, higher interest rates and sharp falls in asset values pushed Australia’s sovereign wealth fund’s financial performance in the red. In a portfolio update as of 31 December 2022 announced on Wednesday, the Future Fund posted a return of 9.1 per cent against a target of 6.7 per cent over 10 years.
Energy transition offers huge opportunity for investors: REST CIO
Handling investments in a decarbonising world is one of the great challenges − and opportunities − facing investment managers of today according to Andrew Lill, chief investment officer of the $70 billion retail industry super fund REST. “Super funds in Australia, as well as asset owners generally, have a really important role when it comes to responsible investing and the commitment to moving to net zero,” he says in an interview with Investment Magazine.
Falling markets knocked US$2 trillion off sovereign wealth funds in 2022
Falling stock and bond markets last year saw the assets of sovereign wealth funds and public pension funds fall by more than US$2 trillion ($2.9 trillion) to US$31.4 trillion, according to the latest report by New York-based industry analyst Global SWF. The report said 2022 was the first year ever that the assets of sovereign wealth funds dropped − estimating that their assets were down by almost 10 per cent or US$1 trillion to US$10.6 trillion over the year.
Could the heat of the spotlight destroy superannuation’s social licence?
Minister for financial services Stephen Jones has put the superannuation industry squarely on notice that the government is not happy with the quality of member service currently provided and is demanding funds do better. Jones cited anecdotes of funds simply not answering members’ phone calls and of funds answering calls but not solving the member’s problem. He’s targeting member service and the member experience for a very good reason.
Finance sector has key role in climate transition
The finance sector is now front and centre in the mammoth task of addressing climate change and ensuring the nation’s sustainable growth and prosperity, thanks to the announcement of a national sustainable finance agenda. From economic recovery to climate action, the finance sector is increasingly seen as holding a significant part of the solution needed to ensure a strong, thriving and sustainable economy.
Tamaki Newsletter– April 2023
Can I begin by wishing everyone a Happy Easter, or to those in our Jewish community, a Happy Passover (Chag Pesach Sameach). For everyone, I hope the weekend ahead is a relaxing and enjoyable one. There is a lot to report on in this newsletter, with much having happened locally and some developments in Wellington that I have played a key part in. AROUND TAMAKI A few days ago I hosted a public meeting at St Chads in Meadowbank with Kainga Ora to discuss their proposed new developments.
The end of greenwash? Why transparency is the focus of sustainable investing in 2022
Yet far from the work being done, 2022 will be the year for transparency and accountability, whereby financial providers will increasingly be asked: “What have we done to deliver on all these responsible investing commitments and promises?” Some key developments will allow for a new level of scrutiny on the sector enabling clients and super fund members to find an answer to this question.
Climate inaction is expensive
If this current Australian summer of bush fires should be teaching us anything, it’s that climate inaction is expensive. There are few Australians who have not been personally touched by the impacts of these fires, directly or indirectly through their friends, families, colleagues or others. As a result, this decade already feels dramatically different to the last, with wide reaching ramifications for investors.
4 myths about working in international schools (sponsored)
For anyone looking for employment, the first days of January are the busiest of the year. The teaching profession is no different. In fact, owing to term dates and notice periods, it is probably one of the busiest industries at the start of the year. For many, this career reboot will simply involve a local move but, for a growing number of teachers, the lure of international schools is increasingly attractive. However, many myths persist about the reality of working overseas.
International teacher movement isn’t a one-way street (sponsored)
"Have you ever considering working in Dubai?" This was a message I received nine years ago, completely out of the blue. I was in a job I loved but it was a wet Thursday in late October and I’d had a tough day. I simply responded: ”Should I?” This started 18 months of discussions, which resulted in my family and I moving to Dubai as I took up the role of principal in one of the city’s most established British curriculum schools. We had intended to move for three years.
Finance must rediscover its true purpose: RIAA
Many in the finance industry will be glad to see the back of 2018. As the industry takes stock following the revelations of the Royal Commission into Misconduct in the Banking, Superannuation and Financial Services Industry, talk is now turning to how the sector can work towards restoring the trust of Australians. A strong starting point is for the world of finance to reconnect with the real economy.
New RIAA Report: Impact Investment Delivering for our Environment and Communities
The significant role capital plays in shaping our society and environment – both positively and negatively – is in focus more than ever before, writes Simon O’Connor, CEO of the Responsible Investment Association Australasia. Many investors are beginning to look at the impacts of their investments to gain a better understanding of the contributions they are making to communities and the planet. Consumers too are starting to demand their investments be invested responsibly and ethically.
Australian superannuation funds can wield their financial muscle responsibly
More fuel is being added to the financial services fire this week with the Productivity Commission report highlighting the challenges in making our superannuation system efficient, competitive and focused on delivering the best outcomes for Australians. What's clear is that as one of the world's largest, and fastest growing, pools of capital of the world, Australia's superannuation industry is carrying a new weight of responsibility not seen before in Australian financial markets.
Sold! Big corporates in big pivot with M&A
A decade on from BHP Billiton’s monster bid for Rio Tinto in 2008, one of Australia’s biggest ever attempted takeovers, the nation’s largest listed companies are displaying a very different mood towards large deals. It’s all about getting simpler, smaller and more tech savvy. “The M&A of the future won’t be the M&A of the past,” says Jamie Garis, managing director of corporate advisory firm Luminis Partners.
Don't get blindsided by volatility: SuperRatings
Super research house SuperRatings has laid out the impressive growth of the typical investment option since the depths of the global financial crisis in 2009. The median balanced option has delivered an average return of 9 per cent per annum in the past nine years, representing accumulated growth of 117 per cent, said SuperRatings. The median growth option (with growth assets of 77-90 per cent) delivered even more impressive returns – 9.9 per cent per annum or an accumulated 134 per cent.
IOOF recruits Lonsec Research CEO
Matt Olsen will step into the new role at the end of April 2018 following two and a half years at Lonsec Research as its chief executive officer. Before that, he was the chief investment officer at industry fund Energy Industries Super, during which he led the investment team and oversaw portfolio performance and the investment process.
Qantas Super signs tax deal with GBST
GBST and Qantas Super have signed an agreement that will see the corporate super fund adopt GBST's TaxIntell capability to calculate CGT. Under new superannuation legislation, complying super funds are granted from relief from the tax consequences for capital gains accumulated before 1 July 2017. From 1 July 2017, capital gains are taxable in cases where the total super balance for a member is greater than $1.6 million.
ANZ suspends consumer asset finance
The announcement that ANZ will suspend providing secured asset finance loans comes after the Federal Court found the bank's former Esanda car finance business breached responsible lending laws. On 28 February 2018, the Federal Court ordered ANZ to pay a penalty of $5 million for breaches of the responsible lending provisions by Esanda.
Tax cuts will 'overheat' US economy
Policymakers have "opened the fiscal taps" on the US economy with tax cuts and a bipartisan budget deal, says Aberdeen Global Investments senior global economist James McCann. The Republican tax plan, known as the Tax Cuts and Jobs Act and rushed through the US Congress by the end of 2017, will add just under US$1.5 trillion to the federal deficit over 10 years, said Mr McCann.
Prime Super launches online claims process
As part of Prime Super's new insurance capability, members will be able to track their initial application online as it progresses to the final payout. Prime Super chief executive Lachlan Baird said the fully online process would "reduce stress" for members who make insurance claims by reducing processing times. "We are delighted to be able to offer this service for our members.
Munro global fund added to BT, CFS platforms
Melbourne-based global equities boutique Munro Partners has had its flagship fund added to the platforms of BT and Colonial First State. Munro chief investment officer Nick Griffin said there are still plenty of opportunities for global investors despite "recent market turmoil". "We continue to find attractive bottom-up investment opportunities for our portfolio," Mr Griffin said.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Simon
Contact Simon, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack